mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Ditched the unused 'list_only' option.
Added code to include source files from 'build_clib' command to default file list -- currently this won't work, since 'build_clib' doesn't have a 'get_source_files()' method!
This commit is contained in:
parent
b2e2c29295
commit
60908f1408
1 changed files with 4 additions and 3 deletions
|
|
@ -36,8 +36,6 @@ class sdist (Command):
|
||||||
|
|
||||||
('formats=', None,
|
('formats=', None,
|
||||||
"formats for source distribution (tar, ztar, gztar, or zip)"),
|
"formats for source distribution (tar, ztar, gztar, or zip)"),
|
||||||
('list-only', 'l',
|
|
||||||
"just list files that would be distributed"),
|
|
||||||
('keep-tree', 'k',
|
('keep-tree', 'k',
|
||||||
"keep the distribution tree around after creating " +
|
"keep the distribution tree around after creating " +
|
||||||
"archive file(s)"),
|
"archive file(s)"),
|
||||||
|
|
@ -64,7 +62,6 @@ class sdist (Command):
|
||||||
self.force_manifest = 0
|
self.force_manifest = 0
|
||||||
|
|
||||||
self.formats = None
|
self.formats = None
|
||||||
self.list_only = 0
|
|
||||||
self.keep_tree = 0
|
self.keep_tree = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -228,6 +225,10 @@ class sdist (Command):
|
||||||
build_ext = self.find_peer ('build_ext')
|
build_ext = self.find_peer ('build_ext')
|
||||||
self.files.extend (build_ext.get_source_files ())
|
self.files.extend (build_ext.get_source_files ())
|
||||||
|
|
||||||
|
if self.distribution.has_c_libraries():
|
||||||
|
build_clib = self.find_peer ('build_clib')
|
||||||
|
self.files.extend (build_clib.get_source_files ())
|
||||||
|
|
||||||
|
|
||||||
def search_dir (self, dir, pattern=None):
|
def search_dir (self, dir, pattern=None):
|
||||||
"""Recursively find files under 'dir' matching 'pattern' (a string
|
"""Recursively find files under 'dir' matching 'pattern' (a string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue