summaryrefslogtreecommitdiff
path: root/src/distutils2/command/build_py.py
diff options
context:
space:
mode:
authorJeremy Kloth <jeremy.kloth@gmail.com>2010-07-14 10:42:25 -0600
committerJeremy Kloth <jeremy.kloth@gmail.com>2010-07-14 10:42:25 -0600
commit75103af3149734f930ac1463331900cd82aee419 (patch)
tree76bea20a4f96a092d325f58272d4f054d4ead5a0 /src/distutils2/command/build_py.py
parent694b0805a0f53875b1ab2863ac026bfd132eb735 (diff)
downloaddisutils2-75103af3149734f930ac1463331900cd82aee419.tar.gz
`sdist.add_defaults()` now uses source files from all commands.
Updated `sdist` to use `get_source_files()` from all possible commands instead of the hard-coded subset of commands. This should help eliminate some required uses of `MANIFEST.in`.
Diffstat (limited to 'src/distutils2/command/build_py.py')
-rw-r--r--src/distutils2/command/build_py.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/distutils2/command/build_py.py b/src/distutils2/command/build_py.py
index 736c35e..7de2648 100644
--- a/src/distutils2/command/build_py.py
+++ b/src/distutils2/command/build_py.py
@@ -372,7 +372,13 @@ class build_py(Command, Mixin2to3):
return modules
def get_source_files(self):
- return [module[-1] for module in self.find_all_modules()]
+ sources = [module[-1] for module in self.find_all_modules()]
+ sources += [
+ os.path.join(src_dir, filename)
+ for package, src_dir, build_dir, filenames in self.data_files
+ for filename in filenames
+ ]
+ return sources
def get_module_outfile(self, build_dir, package, module):
outfile_path = [build_dir] + list(package) + [module + ".py"]