mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
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:
parent
4c67936e4e
commit
37bc815053
8 changed files with 26 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue