[Python-checkins] python/dist/src/Lib/distutils dist.py,1.72,1.73
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Thu Mar 3 09:13:01 CET 2005
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29339/Lib/distutils
Modified Files:
dist.py
Log Message:
Patch #1104111: Alter setup.py --help and --help-commands.
Index: dist.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/dist.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- dist.py 10 Nov 2004 22:23:14 -0000 1.72
+++ dist.py 3 Mar 2005 08:12:26 -0000 1.73
@@ -59,6 +59,15 @@
('help', 'h', "show detailed help message"),
]
+ # 'common_usage' is a short (2-3 line) string describing the common
+ # usage of the setup script.
+ common_usage = """\
+Common commands: (see '--help-commands' for more)
+
+ setup.py build will build the package underneath 'build/'
+ setup.py install will install the package
+"""
+
# options that are not propagated to the commands
display_options = [
('help-commands', None,
@@ -608,7 +617,7 @@
else:
options = self.global_options
parser.set_option_table(options)
- parser.print_help("Global options:")
+ parser.print_help(self.common_usage + "\nGlobal options:")
print
if display_options:
More information about the Python-checkins
mailing list