Added 'description' class attribute to every command class (to help the
'--help-commands' option).
Shuffled imports around in a few command modules to avoid expensive
up-front import of sysconfig (and resulting delays in generating list
of all commands).
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 6f5d671..0e5b01c 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -8,13 +8,14 @@
import sys, os, string
from types import *
-from distutils import sysconfig
from distutils.core import Command
from distutils.util import write_file
class Install (Command):
+ description = "install everything from build directory"
+
options = [('prefix=', None, "installation prefix"),
('exec-prefix=', None,
"prefix for platform-specific files"),
@@ -246,6 +247,8 @@
then replace it with the current installation prefix and
return the "relocated" installation directory."""
+ from distutils import sysconfig
+
if use_exec:
sys_prefix = os.path.normpath (sys.exec_prefix)
my_prefix = self.exec_prefix