summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-03 08:12:27 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-03 08:12:27 (GMT)
commit8ed338ab44daf3cd681d73156fd1d9b6bed53795 (patch)
tree97ec91b6619467915a6f7ae73b6a289674518462 /Lib/distutils/dist.py
parent5dc8ced4a889d36be63f6119e5a055c44dfd9507 (diff)
downloadcpython-8ed338ab44daf3cd681d73156fd1d9b6bed53795.zip
cpython-8ed338ab44daf3cd681d73156fd1d9b6bed53795.tar.gz
cpython-8ed338ab44daf3cd681d73156fd1d9b6bed53795.tar.bz2
Patch #1104111: Alter setup.py --help and --help-commands.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index 9eb2aa4..4f4bae5 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -59,6 +59,15 @@ class Distribution:
('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 @@ class Distribution:
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: