From 0ca819e212bdecce8179a803e0175db679dcef53 Mon Sep 17 00:00:00 2001 From: gward Date: Wed, 29 Sep 1999 13:14:27 +0000 Subject: [PATCH] Added 'list_only' option (and modified 'run()' to respect it). git-svn-id: http://svn.python.org/projects/python/trunk@13885 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/distutils/command/dist.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/command/dist.py b/Lib/distutils/command/dist.py index 222296f363..3f309745ad 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): -- 2.11.4.GIT