summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_ext.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-07 03:00:06 (GMT)
committerGreg Ward <gward@python.net>2000-06-07 03:00:06 (GMT)
commit9d17a7ad6df0a940f8f10cf7a113aaffc4222309 (patch)
tree825174ee769bf6ab27252f9a2965ed2b81680fb5 /Lib/distutils/command/build_ext.py
parent1169687692e5e897033421fe6a73a3c32675a7d7 (diff)
downloadcpython-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_ext.py')
-rw-r--r--Lib/distutils/command/build_ext.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index f487a68..53a265c 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -14,6 +14,7 @@ from distutils.core import Command
from distutils.errors import *
from distutils.dep_util import newer_group
from distutils.extension import Extension
+from distutils.ccompiler import show_compilers
# An extension name is just a dot-separated list of Python NAMEs (ie.
# the same as a fully-qualified module name).
@@ -72,6 +73,10 @@ class build_ext (Command):
('compiler=', 'c',
"specify the compiler type"),
]
+ help_options = [
+ ('help-compiler', None,
+ "lists available compilers",show_compilers),
+ ]
def initialize_options (self):