Revert "Adding support for Microsoft Visual C++ Compiler for Python 2.7"

This reverts commit 96dc809236.
This commit is contained in:
Robin Dunn
2017-04-15 11:26:49 -07:00
parent be47177b34
commit b6ab0b1884
2 changed files with 0 additions and 7 deletions

View File

@@ -723,9 +723,7 @@ def checkCompiler(quiet=False):
# Make sure that the compiler that Python wants to use can be found.
# It will terminate if the compiler is not found or other exceptions
# are raised.
# setuptools is imported to address https://bugs.python.org/issue23246
cmd = "import distutils.msvc9compiler as msvc; " \
"import setuptools; " \
"mc = msvc.MSVCCompiler(); " \
"mc.initialize(); " \
"print(mc.cc)"
@@ -736,9 +734,7 @@ def checkCompiler(quiet=False):
# Now get the environment variables which that compiler needs from
# its vcvarsall.bat command and load them into this process's
# environment.
# setuptools is imported to address https://bugs.python.org/issue23246
cmd = "import distutils.msvc9compiler as msvc; " \
"import setuptools; " \
"arch = msvc.PLAT_TO_VCVARS[msvc.get_platform()]; " \
"env = msvc.query_vcvarsall(msvc.VERSION, arch); " \
"print(env)"

View File

@@ -74,7 +74,6 @@ def configure(conf):
msvc_version = str( distutils.msvc9compiler.get_build_version() )
conf.env['MSVC_VERSIONS'] = ['msvc ' + msvc_version]
conf.env['MSVC_TARGETS'] = [conf.options.msvc_arch]
conf.env['NO_MSVC_DETECT'] = 1
conf.load('msvc')
else:
conf.load('compiler_cc compiler_cxx')
@@ -416,8 +415,6 @@ def my_check_python_headers(conf):
if env.CC_NAME == "msvc":
from distutils.msvccompiler import MSVCCompiler
# setuptools is imported to address https://bugs.python.org/issue23246
import setuptools
dist_compiler = MSVCCompiler()
dist_compiler.initialize()
env.append_value('CFLAGS_PYEXT', dist_compiler.compile_options)