mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
make sure the default manifest generation includes files identified as
scripts closes SF bug 796042
This commit is contained in:
parent
91e83e209d
commit
4b49823edd
2 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ class build_scripts (Command):
|
||||||
('force', 'force'))
|
('force', 'force'))
|
||||||
self.scripts = self.distribution.scripts
|
self.scripts = self.distribution.scripts
|
||||||
|
|
||||||
|
def get_source_files(self):
|
||||||
|
return self.scripts
|
||||||
|
|
||||||
def run (self):
|
def run (self):
|
||||||
if not self.scripts:
|
if not self.scripts:
|
||||||
|
|
|
||||||
|
|
@ -304,6 +304,10 @@ class sdist (Command):
|
||||||
build_clib = self.get_finalized_command('build_clib')
|
build_clib = self.get_finalized_command('build_clib')
|
||||||
self.filelist.extend(build_clib.get_source_files())
|
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 ()
|
# add_defaults ()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue