Skip to content
Snippets Groups Projects
Unverified Commit 727f540f authored by David Hoese's avatar David Hoese
Browse files

Add conda recipe

parent 66f662d1
No related branches found
No related tags found
1 merge request!1Add conda recipe
......@@ -27,3 +27,31 @@ which python
# start up ipython
ipython
```
## Building the Conda Package
```
# add the conda-forge channel (done once)
conda config --add channels conda-forge
# build the conda package and place things in dist/
conda build conda-recipe --output-folder dist
# copy the output to a Conda channel host
cp dist/<platform>/*.bz2 /path/to/channel/<platform>/
# add the package to the channel index
conda index /path/to/channel/<platform>/
```
## Installing the Conda Package (no development)
```
# specify the appropriate channel to install the package in either the
# 'create' command
conda create -n goesr -c http://larch.ssec.wisc.edu/channels/sift python=3.6 goesr
# or 'install' command
conda install -c http://larch.ssec.wisc.edu/channels/sift goesr
# to update the package
conda update -c http://larch.ssec.wisc.edu/channels/sift goesr
```
echo %cd%
if errorlevel 1 exit 1
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
:: Add more build steps here, if they are necessary.
:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
#!/bin/bash
$PYTHON setup.py install
# Add more build steps here, if they are necessary.
# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
{% set data = load_setup_py_data() %}
package:
name: goesr
version: {{ data.get('version') }}
source:
path: ../
# patches:
# List any patch files here
# - fix.patch
build:
# If this is a new build for the same version, increment the build
# number. If you do not include this key, it defaults to 0.
number: 0
noarch: python
requirements:
build:
- python >=3.6
- setuptools
- numpy >=1.12
- pyproj >=1.9.4
- netcdf4
run:
- python >=3.6
- setuptools
- numpy >=1.12
- pyproj >=1.9.4
- netcdf4
test:
commands:
# - python -m goesr.l1b # FIXME: Tests in l1b require a non-package test file
about:
#home: The package home page
license: GNU Lesser General Public License v3 or later (LGPLv3+)
summary: 'Toolbox for extracting imagery from GOES-16 PUG L1B NetCDF4 files originally goesr_pug.py as part of SIFT.'
# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
......@@ -681,7 +681,7 @@ def main():
# http://docs.python.org/2.7/library/argparse.html#nargs
# parser.add_argument('--stuff', nargs='5', dest='my_stuff',
# help="one or more random things")
parser.add_argument('inputs', nargs=1,
parser.add_argument('inputs', nargs='*',
help="input file to process")
args = parser.parse_args()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment