summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/build.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-24 01:23:37 +0000
committerGreg Ward <gward@python.net>2000-06-24 01:23:37 +0000
commit3459381e2a271981e09441752962b748869adf5d (patch)
treefb12badb277c876627bbfbe2a2a1628941bb6234 /Lib/distutils/command/build.py
parent55fced3df9efac28e4ead6e3115a4e8658e28bf5 (diff)
downloadcpython-git-3459381e2a271981e09441752962b748869adf5d.tar.gz
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.py')
-rw-r--r--Lib/distutils/command/build.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py
index d5513fc737..1e87f23bbc 100644
--- a/Lib/distutils/command/build.py
+++ b/Lib/distutils/command/build.py
@@ -9,7 +9,12 @@ __revision__ = "$Id$"
import sys, os
from distutils.core import Command
from distutils.util import get_platform
-from distutils.ccompiler import show_compilers
+
+
+def show_compilers ():
+ from distutils.ccompiler import show_compilers
+ show_compilers()
+
class build (Command):