diff options
author | Greg Ward <gward@python.net> | 2000-06-07 03:00:06 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-07 03:00:06 (GMT) |
commit | 9d17a7ad6df0a940f8f10cf7a113aaffc4222309 (patch) | |
tree | 825174ee769bf6ab27252f9a2965ed2b81680fb5 /Lib/distutils/command/build.py | |
parent | 1169687692e5e897033421fe6a73a3c32675a7d7 (diff) | |
download | cpython-9d17a7ad6df0a940f8f10cf7a113aaffc4222309.zip cpython-9d17a7ad6df0a940f8f10cf7a113aaffc4222309.tar.gz cpython-9d17a7ad6df0a940f8f10cf7a113aaffc4222309.tar.bz2 |
Patch from Rene Liebscher: this adds "--help-foo" options to list the
values that "--foo" can take for various commands: eg. what formats for
"sdist" and "bdist", what compilers for "build_ext" and "build_clib".
I have *not* reviewed this patch; I'm checking it in as-is because it also
fixes a paper-bag-over-head bug in bdist.py, and because I won't have
time to review it properly for several days: so someone else can
test it for me, instead!
Diffstat (limited to 'Lib/distutils/command/build.py')
-rw-r--r-- | Lib/distutils/command/build.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py index b0894b8..c064f83 100644 --- a/Lib/distutils/command/build.py +++ b/Lib/distutils/command/build.py @@ -9,6 +9,7 @@ __revision__ = "$Id$" import sys, os from distutils.core import Command from distutils.util import get_platform +from distutils.ccompiler import show_compilers class build (Command): @@ -35,6 +36,10 @@ class build (Command): ('force', 'f', "forcibly build everything (ignore file timestamps)"), ] + help_options = [ + ('help-compiler', None, + "lists available compilers",show_compilers), + ] def initialize_options (self): self.build_base = 'build' |