diff options
author | Greg Ward <gward@python.net> | 1999-09-29 13:14:27 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-09-29 13:14:27 (GMT) |
commit | b24afe19db084aaed63cb5bb0e1954060aa65df1 (patch) | |
tree | 5df2a12203717639f2c4bfc9a0729e28f8ff4018 | |
parent | 274ad9dc81c21708696f617a0df80ad89b7efba7 (diff) | |
download | cpython-b24afe19db084aaed63cb5bb0e1954060aa65df1.zip cpython-b24afe19db084aaed63cb5bb0e1954060aa65df1.tar.gz cpython-b24afe19db084aaed63cb5bb0e1954060aa65df1.tar.bz2 |
Added 'list_only' option (and modified 'run()' to respect it).
-rw-r--r-- | Lib/distutils/command/dist.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/distutils/command/dist.py b/Lib/distutils/command/dist.py index 222296f..3f30974 100644 --- a/Lib/distutils/command/dist.py +++ b/Lib/distutils/command/dist.py @@ -133,6 +133,8 @@ class Dist (Command): "formats for source distribution (tar, ztar, gztar, or zip)"), ('manifest=', 'm', "name of manifest file"), + ('list-only', 'l', + "just list files that would be distributed"), ] default_format = { 'posix': 'gztar', @@ -144,6 +146,7 @@ class Dist (Command): def set_default_options (self): self.formats = None self.manifest = None + self.list_only = 0 def set_final_options (self): @@ -169,7 +172,12 @@ class Dist (Command): self.find_defaults () self.read_manifest () - self.make_distribution () + if self.list_only: + for f in self.files: + print f + + else: + self.make_distribution () def check_metadata (self): |