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!
This commit is contained in:
Greg Ward 2000-06-07 03:00:06 +00:00
parent 1169687692
commit 9d17a7ad6d
8 changed files with 107 additions and 25 deletions

View file

@ -23,7 +23,7 @@ import os, string
from types import *
from distutils.core import Command
from distutils.errors import *
from distutils.ccompiler import new_compiler
from distutils.ccompiler import new_compiler,show_compilers
class build_clib (Command):
@ -42,6 +42,10 @@ class build_clib (Command):
('compiler=', 'c',
"specify the compiler type"),
]
help_options = [
('help-compiler', None,
"lists available compilers",show_compilers),
]
def initialize_options (self):
self.build_clib = None