Skip to content

Commit 24d26a3

Browse files
committed
Stop using deprecated __conda_version__.txt file.
Use jinja template function to get version string from setup.py.
1 parent 0922b43 commit 24d26a3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

conda-recipe/build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ $PYTHON setup.py install
44

55
# Add more build steps here, if they are necessary.
66

7-
$PYTHON setup.py --version > __conda_version__.txt
8-
97
# See http://docs.continuum.io/conda/build.html
108
# for a list of environment variables that are set during the build process.

conda-recipe/meta.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
{% set setupdata = load_setup_py_data() %}
2+
13
package:
24
name: diffpy.pdfgui
3-
## Use __conda_version__.txt.
5+
version: {{ setupdata['version'] }}
46

57
source:
68
# git_url: https://github.com/diffpy/diffpy.pdfgui.git

0 commit comments

Comments
 (0)