diff options
author | Fred Drake <fdrake@acm.org> | 2004-03-25 22:04:52 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2004-03-25 22:04:52 (GMT) |
commit | 4b49823eddd7c10f653acb4b6fbb2c32bfc70499 (patch) | |
tree | e70eb36035a13536f7b80fb9fd59c50a5740ebac /Lib | |
parent | 91e83e209d66d4b7a892c9360f9e524d6e282191 (diff) | |
download | cpython-4b49823eddd7c10f653acb4b6fbb2c32bfc70499.zip cpython-4b49823eddd7c10f653acb4b6fbb2c32bfc70499.tar.gz cpython-4b49823eddd7c10f653acb4b6fbb2c32bfc70499.tar.bz2 |
make sure the default manifest generation includes files identified as
scripts
closes SF bug 796042
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/build_scripts.py | 2 | ||||
-rw-r--r-- | Lib/distutils/command/sdist.py | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index 8de9cd3..165a009 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py @@ -41,6 +41,8 @@ class build_scripts (Command): ('force', 'force')) self.scripts = self.distribution.scripts + def get_source_files(self): + return self.scripts def run (self): if not self.scripts: diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py index c0b7dd4..0a29add 100644 --- a/Lib/distutils/command/sdist.py +++ b/Lib/distutils/command/sdist.py @@ -304,6 +304,10 @@ class sdist (Command): build_clib = self.get_finalized_command('build_clib') self.filelist.extend(build_clib.get_source_files()) + if self.distribution.has_scripts(): + build_scripts = self.get_finalized_command('build_scripts') + self.filelist.extend(build_scripts.get_source_files()) + # add_defaults () |