diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 22:28:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 22:28:28 +0000 |
commit | 61b48697e440f76b2337c790ec5ca763cd55200b (patch) | |
tree | da64ece2ba0b6b97deb51c36ca320c64102e9baa /scipy/distutils/command/sdist.py | |
parent | 575d373479c63a42bc4a729a058da31a74e75d3e (diff) | |
download | numpy-61b48697e440f76b2337c790ec5ca763cd55200b.tar.gz |
Moving things to live under scipy
Diffstat (limited to 'scipy/distutils/command/sdist.py')
-rw-r--r-- | scipy/distutils/command/sdist.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scipy/distutils/command/sdist.py b/scipy/distutils/command/sdist.py new file mode 100644 index 000000000..0b0c49d4b --- /dev/null +++ b/scipy/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 |