summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-01-30 18:34:15 (GMT)
committerGreg Ward <gward@python.net>2000-01-30 18:34:15 (GMT)
commit37bc81505379facad85a7c6ff273de0201f28656 (patch)
treef2c2208609ff73860b86da445fbb7669847b5bbc /Lib/distutils/command/install.py
parent4c67936e4eab6db332c32b51f45c91870fb58d90 (diff)
downloadcpython-37bc81505379facad85a7c6ff273de0201f28656.zip
cpython-37bc81505379facad85a7c6ff273de0201f28656.tar.gz
cpython-37bc81505379facad85a7c6ff273de0201f28656.tar.bz2
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).
Diffstat (limited to 'Lib/distutils/command/install.py')
-rw-r--r--Lib/distutils/command/install.py5
1 files changed, 4 insertions, 1 deletions
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 @@ __rcsid__ = "$Id$"
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 @@ class Install (Command):
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