From 7c62c6564f25c1e0a0df64d2d01b543ec6cebd81 Mon Sep 17 00:00:00 2001 From: "P.T. Jochym" Date: Sat, 9 Jan 2016 15:10:27 +0100 Subject: [PATCH] Switch to build.sh generated version numbers. --- conda/build.sh | 2 ++ conda/meta.yaml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conda/build.sh b/conda/build.sh index 4d7fc032..06d8ab10 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -1,5 +1,7 @@ #!/bin/bash +git describe --tags --dirty | sed -e 's/-\(.*\)-g.*/+\1/' -e 's/^v//g' > __conda_version__.txt + $PYTHON setup.py install # Add more build steps here, if they are necessary. diff --git a/conda/meta.yaml b/conda/meta.yaml index af102fe1..3a3ffe5c 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,6 +1,5 @@ package: name: phonopy - version: {{ environ.get('GIT_DESCRIBE_TAG', '') }} source: git_url: https://github.com/jochym/phonopy.git @@ -18,7 +17,7 @@ build: # If this is a new build for the same version, increment the build # number. If you do not include this key, it defaults to 0. - number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }} + number: 0 requirements: build: