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).
This commit is contained in:
Greg Ward 2000-01-30 18:34:15 +00:00
parent 4c67936e4e
commit 37bc815053
8 changed files with 26 additions and 6 deletions

View file

@ -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