summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@googlemail.com>2011-03-22 14:25:56 +0100
committerRalf Gommers <ralf.gommers@googlemail.com>2011-03-23 09:07:27 +0100
commitc0dcaf415f7655aeeb9c78decf82eaeec4d34120 (patch)
treeb55ead719e18eb2e8c12949494801bfaa46ab9a5 /setup.py
parentfeed7055385b9b90675993819d6446b3b26c64ea (diff)
downloadnumpy-c0dcaf415f7655aeeb9c78decf82eaeec4d34120.tar.gz
BUG: version string construction was not working with released=True
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 866585834..14e2d6f99 100755
--- a/setup.py
+++ b/setup.py
@@ -97,15 +97,15 @@ builtins.__NUMPY_SETUP__ = True
# Construct full version info. Needs to be in setup.py namespace, otherwise it
# can't be accessed from pavement.py at build time.
FULLVERSION = VERSION
-if not ISRELEASED:
- if os.path.exists('.git'):
- GIT_REVISION = git_version()
- elif os.path.exists('numpy/version.py'):
- # must be a source distribution, use existing version file
- from numpy.version import git_revision as GIT_REVISION
- else:
- GIT_REVISION = "Unknown"
+if os.path.exists('.git'):
+ GIT_REVISION = git_version()
+elif os.path.exists('numpy/version.py'):
+ # must be a source distribution, use existing version file
+ from numpy.version import git_revision as GIT_REVISION
+else:
+ GIT_REVISION = "Unknown"
+if not ISRELEASED:
FULLVERSION += '.dev-' + GIT_REVISION[:7]
def write_version_py(filename='numpy/version.py'):