BLD: Include commit hash in conda build string when not at exact tag

This commit is contained in:
Richard Frank
2016-03-06 09:38:27 -05:00
parent 863e7c39ee
commit f89cbbdde2
+6 -3
View File
@@ -2,17 +2,20 @@
package:
name: zipline
version: {{ environ.get('GIT_DESCRIBE_TAG', '')}}
version: {{ GIT_DESCRIBE_TAG|replace('v', '') }}
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
number: {{ GIT_DESCRIBE_NUMBER|int }}
string: np{{ NPY_VER|replace('.', '') }}py{{ PY_VER|replace('.', '') }}_{{ (
GIT_BUILD_STR if GIT_DESCRIBE_NUMBER|int != 0 else '0'
) }}
source:
git_url: ../../
requirements:
build:
- python
- python {{ PY_VER }}*
{% for req in data.get('build_requires', []) -%}
- {{req}}
{% endfor %}