diff options
author | Greg Ward <gward@python.net> | 2000-06-24 01:23:37 +0000 |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-24 01:23:37 +0000 |
commit | 3459381e2a271981e09441752962b748869adf5d (patch) | |
tree | fb12badb277c876627bbfbe2a2a1628941bb6234 /Lib/distutils/command/build_clib.py | |
parent | 55fced3df9efac28e4ead6e3115a4e8658e28bf5 (diff) | |
download | cpython-3459381e2a271981e09441752962b748869adf5d.tar.gz cpython-3459381e2a271981e09441752962b748869adf5d.zip |
Changed so all the help-generating functions are defined, at module-level,
in the module of the command classes that have command-specific
help options. This lets us keep the principle of lazily importing
the ccompiler module, and also gets away from defining non-methods
at class level.
Diffstat (limited to 'Lib/distutils/command/build_clib.py')
-rw-r--r-- | Lib/distutils/command/build_clib.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_clib.py b/Lib/distutils/command/build_clib.py index 9a82ac09174..7106882d792 100644 --- a/Lib/distutils/command/build_clib.py +++ b/Lib/distutils/command/build_clib.py @@ -23,7 +23,11 @@ import os, string from types import * from distutils.core import Command from distutils.errors import * -from distutils.ccompiler import new_compiler,show_compilers + + +def show_compilers (): + from distutils.ccompiler import show_compilers + show_compilers() class build_clib (Command): @@ -102,6 +106,7 @@ class build_clib (Command): return # Yech -- this is cut 'n pasted from build_ext.py! + from distutils.ccompiler import new_compiler self.compiler = new_compiler (compiler=self.compiler, verbose=self.verbose, dry_run=self.dry_run, |