diff options
author | David Cournapeau <cournape@gmail.com> | 2009-04-01 16:18:55 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-04-01 16:18:55 +0000 |
commit | d8fc4ad412c468a92660a8bb6d8b6615ac4292ff (patch) | |
tree | 7a2c57d4dd39c595ccac82e24f236d05dfe6db98 /setup.py | |
parent | a4c5e55aa74ca1ac28b0451d0e092991b8d6abca (diff) | |
download | numpy-d8fc4ad412c468a92660a8bb6d8b6615ac4292ff.tar.gz |
Fix missing distutils log import .
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -56,6 +56,7 @@ VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # Return the svn version as a string (copied from setuptools) def svn_revision(): + from numpy.distutils import log revision = 0 urlre = re.compile('url="([^"]+)"') revre = re.compile('committed-rev="(\d+)"') @@ -90,13 +91,6 @@ def svn_revision(): return str(revision) -FULLVERSION = VERSION -if not ISRELEASED: - FULLVERSION += '.dev' - # If in git or something, bypass the svn rev - if os.path.exists('.svn'): - FULLVERSION += svn_revision() - # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly # update it when the contents of directories change. if os.path.exists('MANIFEST'): os.remove('MANIFEST') @@ -107,6 +101,13 @@ if os.path.exists('MANIFEST'): os.remove('MANIFEST') # a lot more robust than what was previously being used. __builtin__.__NUMPY_SETUP__ = True +FULLVERSION = VERSION +if not ISRELEASED: + FULLVERSION += '.dev' + # If in git or something, bypass the svn rev + if os.path.exists('.svn'): + FULLVERSION += svn_revision() + def write_version_py(filename='numpy/version.py'): cnt = """ # THIS FILE IS GENERATED FROM NUMPY SETUP.PY |