summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorFernando Perez <fperez@fperez.org>2006-07-12 06:02:28 +0000
committerFernando Perez <fperez@fperez.org>2006-07-12 06:02:28 +0000
commit36d3c1616707659db3c0217688b4ccb5d7838ae1 (patch)
tree08500507bc8752b85e7379d6d28bb23cb6a79906 /setup.py
parent6a882aee5c0f1db892363600f17fc43f4a175d23 (diff)
downloadnumpy-36d3c1616707659db3c0217688b4ccb5d7838ae1.tar.gz
Remove MANIFEST file at startup time, since distutils fails to properly update it. Also add proper shebang line.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index e43ba2c2a..b69ab48da 100755
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
"""NumPy: array processing for numbers, strings, records, and objects.
NumPy is a general-purpose array-processing package designed to
@@ -31,6 +32,10 @@ Operating System :: Unix
Operating System :: MacOS
"""
+# 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')
+
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration