mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 07:59:53 +08:00
BLD: Include commit hash in conda build string when not at exact tag
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user