summaryrefslogtreecommitdiff
path: root/distutils/command/sdist.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-14 22:12:33 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-14 22:12:33 +0000
commit575d373479c63a42bc4a729a058da31a74e75d3e (patch)
tree940a3020e83dd06c2241d8f45bd4969850694803 /distutils/command/sdist.py
parent14db4193112ecc5930154af860228562132e3b48 (diff)
downloadnumpy-575d373479c63a42bc4a729a058da31a74e75d3e.tar.gz
Added new distutils
Diffstat (limited to 'distutils/command/sdist.py')
-rw-r--r--distutils/command/sdist.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/distutils/command/sdist.py b/distutils/command/sdist.py
new file mode 100644
index 000000000..0b0c49d4b
--- /dev/null
+++ b/distutils/command/sdist.py
@@ -0,0 +1,22 @@
+
+from distutils.command.sdist import *
+from distutils.command.sdist import sdist as old_sdist
+from scipy.distutils.misc_util import get_data_files
+
+class sdist(old_sdist):
+
+ def add_defaults (self):
+ old_sdist.add_defaults(self)
+
+ if self.distribution.has_data_files():
+ for data in self.distribution.data_files:
+ self.filelist.extend(get_data_files(data))
+
+ if self.distribution.has_headers():
+ headers = []
+ for h in self.distribution.headers:
+ if isinstance(h,str): headers.append(h)
+ else: headers.append(h[1])
+ self.filelist.extend(headers)
+
+ return