diff options
Diffstat (limited to 'stwcs')
| -rw-r--r-- | stwcs/bld.bat | 3 | ||||
| -rw-r--r-- | stwcs/build.sh | 26 | ||||
| -rw-r--r-- | stwcs/meta.yaml | 23 | 
3 files changed, 16 insertions, 36 deletions
| diff --git a/stwcs/bld.bat b/stwcs/bld.bat index b290566..2d6c912 100644 --- a/stwcs/bld.bat +++ b/stwcs/bld.bat @@ -1,3 +1,2 @@ -  python setup.py install -if errorlevel 1 exit 1
\ No newline at end of file +if errorlevel 1 exit 1 diff --git a/stwcs/build.sh b/stwcs/build.sh index c4021f1..5a5aeeb 100644 --- a/stwcs/build.sh +++ b/stwcs/build.sh @@ -1,25 +1 @@ - -function get_py_version() { -python --version 2>&1| awk '{sub(/-.*/,"",$2);print $2}' -} -export -f get_py_version - -function set_py3k() { -version=`get_py_version` -major=`echo $version | cut -d '.' -f 1` -minor=`echo $version | cut -d '.' -f 2` -hotfix=`echo $version | cut -d '.' -f 3` -if (( major > 2 )); then -export PY3K=1 -else -export PY3K=0 -fi -} -export -f set_py3k - -set_py3k - - - -sed -i -e "s|use_2to3=True|use_2to3=False|" setup.py -python setup.py install || exit 1 +$PYTHON setup.py install diff --git a/stwcs/meta.yaml b/stwcs/meta.yaml index 7140dc0..e26589c 100644 --- a/stwcs/meta.yaml +++ b/stwcs/meta.yaml @@ -5,30 +5,35 @@  {% set number = '0' %}  about: -    home: https://github.com/spacetelescope/stwcs +    home: https://github.com/spacetelescope/{{name}}      license: BSD -    summary: stwcs +    summary: | +        WCS based distortion models and coordinate transformation +  build: -    number: {{ number }} +    number: {{number}} +  package: -    name: {{ name }} -    version: {{ version }} +    name: {{name}} +    version: {{version}} +  requirements:      build:      - d2to1 -    - stsci.distutils -    - astropy +    - astropy >=1.1      - stsci.tools      - setuptools      - numpy x.x      - python x.x      run: -    - astropy +    - astropy >=1.1      - stsci.tools      - numpy x.x      - python x.x +  source: -    git_url: https://github.com/spacetelescope/stwcs +    git_url: https://github.com/spacetelescope/{{name}}.git +  test:      imports:      - stwcs | 
