aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/msvc.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-09 12:54:34 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-09-09 12:54:34 -0400
commit7756f651df47dc870e886c1b13c5b48068c2dd5b (patch)
tree95594c864b4df965a4206d174f186e7d3bcc14a5 /setuptools/msvc.py
parentb7b9cb23f217095e79c618c0e3196712d2d9a285 (diff)
downloadexternal_python_setuptools-7756f651df47dc870e886c1b13c5b48068c2dd5b.tar.gz
external_python_setuptools-7756f651df47dc870e886c1b13c5b48068c2dd5b.tar.bz2
external_python_setuptools-7756f651df47dc870e886c1b13c5b48068c2dd5b.zip
Allow get_unpatched to be called to get unpatched version of a class or function, further harmonizing the interfaces.
Diffstat (limited to 'setuptools/msvc.py')
-rw-r--r--setuptools/msvc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py
index ae5a2b6a..e9665e10 100644
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -24,7 +24,7 @@ from pkg_resources.extern.packaging.version import LegacyVersion
from setuptools.extern.six.moves import filterfalse
-from .monkey import get_unpatched_func
+from .monkey import get_unpatched
if platform.system() == 'Windows':
from setuptools.extern.six.moves import winreg
@@ -87,7 +87,7 @@ def msvc9_find_vcvarsall(version):
if os.path.isfile(vcvarsall):
return vcvarsall
- return get_unpatched_func(msvc9_find_vcvarsall)(version)
+ return get_unpatched(msvc9_find_vcvarsall)(version)
def msvc9_query_vcvarsall(ver, arch='x86', *args, **kwargs):
@@ -120,7 +120,7 @@ def msvc9_query_vcvarsall(ver, arch='x86', *args, **kwargs):
"""
# Try to get environement from vcvarsall.bat (Classical way)
try:
- orig = get_unpatched_func(msvc9_query_vcvarsall)
+ orig = get_unpatched(msvc9_query_vcvarsall)
return orig(ver, arch, *args, **kwargs)
except distutils.errors.DistutilsPlatformError:
# Pass error if Vcvarsall.bat is missing
@@ -160,7 +160,7 @@ def msvc14_get_vc_env(plat_spec):
"""
# Try to get environment from vcvarsall.bat (Classical way)
try:
- return get_unpatched_func(msvc14_get_vc_env)(plat_spec)
+ return get_unpatched(msvc14_get_vc_env)(plat_spec)
except distutils.errors.DistutilsPlatformError:
# Pass error Vcvarsall.bat is missing
pass
@@ -183,7 +183,7 @@ def msvc14_gen_lib_options(*args, **kwargs):
import numpy as np
if LegacyVersion(np.__version__) < LegacyVersion('1.11.2'):
return np.distutils.ccompiler.gen_lib_options(*args, **kwargs)
- return get_unpatched_func(msvc14_gen_lib_options)(*args, **kwargs)
+ return get_unpatched(msvc14_gen_lib_options)(*args, **kwargs)
def _augment_exception(exc, version, arch=''):