Skip to content

Commit af1ae8a

Browse files
committed
BLD: make conda.recipe have nice build strings when releasing
1 parent 2d51b33 commit af1ae8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conda.recipe/meta.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ package:
44

55
build:
66
number: {{ GIT_DESCRIBE_NUMBER|int }}
7-
string: np{{ CONDA_NPY }}py{{ CONDA_PY }}_{{ GIT_BUILD_STR }}
7+
{% if GIT_DESCRIBE_NUMBER|int == 0 %}string: np{{ CONDA_NPY }}py{{ CONDA_PY }}_0
8+
{% else %}string: np{{ CONDA_NPY }}py{{ CONDA_PY }}_{{ GIT_BUILD_STR }}{% endif %}
89

910
source:
1011
git_url: ../

0 commit comments

Comments
 (0)