mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
massive import cleaning in Distutils
This commit is contained in:
parent
2421d56e02
commit
2b66da7d15
24 changed files with 97 additions and 121 deletions
|
@ -10,12 +10,13 @@ for the Microsoft Visual Studio.
|
|||
|
||||
__revision__ = "$Id$"
|
||||
|
||||
import sys, os, string
|
||||
from distutils.errors import \
|
||||
DistutilsExecError, DistutilsPlatformError, \
|
||||
CompileError, LibError, LinkError
|
||||
from distutils.ccompiler import \
|
||||
CCompiler, gen_preprocess_options, gen_lib_options
|
||||
import sys
|
||||
import os
|
||||
import string
|
||||
|
||||
from distutils.errors import (DistutilsExecError, DistutilsPlatformError,
|
||||
CompileError, LibError, LinkError)
|
||||
from distutils.ccompiler import CCompiler, gen_lib_options
|
||||
from distutils import log
|
||||
|
||||
_can_read_reg = 0
|
||||
|
@ -127,7 +128,7 @@ class MacroExpander:
|
|||
self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1")
|
||||
else:
|
||||
self.set_macro("FrameworkSDKDir", net, "sdkinstallroot")
|
||||
except KeyError, exc: #
|
||||
except KeyError:
|
||||
raise DistutilsPlatformError, \
|
||||
("""Python was built with Visual Studio 2003;
|
||||
extensions must be built with a compiler than can generate compatible binaries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue