diff options
Diffstat (limited to 'stwcs')
-rw-r--r-- | stwcs/bld.bat | 3 | ||||
-rw-r--r-- | stwcs/meta.yaml | 16 |
2 files changed, 9 insertions, 10 deletions
diff --git a/stwcs/bld.bat b/stwcs/bld.bat index 2d6c912..39b5e1f 100644 --- a/stwcs/bld.bat +++ b/stwcs/bld.bat @@ -1,2 +1 @@ -python setup.py install -if errorlevel 1 exit 1 +%PYTHON% setup.py install diff --git a/stwcs/meta.yaml b/stwcs/meta.yaml index 2a053c9..4fb72a8 100644 --- a/stwcs/meta.yaml +++ b/stwcs/meta.yaml @@ -1,8 +1,9 @@ {% set name = 'stwcs' %} -{% set version = environ.get("GIT_DESCRIBE_TAG", "0.0.0") - +".dev" - +environ.get("GIT_DESCRIBE_NUMBER", "0") %} -{% set number = '1' %} +{% set version = GIT_DESCRIBE_TAG ~ ".dev" ~ GIT_DESCRIBE_NUMBER ~ "+" ~ GIT_DESCRIBE_HASH %} +{% if version[0] == 'v' %} +{% set version = version[1:] %} +{% endif %} +{% set number = '2' %} about: home: https://github.com/spacetelescope/{{ name }} @@ -18,17 +19,16 @@ package: requirements: build: - - d2to1 - astropy >=1.1 - stsci.tools - setuptools - - numpy - - python x.x + - numpy {{ numpy }} + - python {{ python }} run: - astropy >=1.1 - stsci.tools - numpy - - python x.x + - python source: git_url: https://github.com/spacetelescope/{{ name }}.git |