diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2023-01-21 10:04:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-21 10:04:58 -0500 |
| commit | 40911c1b16be2247c0698d68b01ca587ed7be677 (patch) | |
| tree | 6646514a275cea6d0ba618595ccf820493a3d2db /setuptools/msvc.py | |
| parent | 56ef50b3abf53183ee72253d39333169bfefd33e (diff) | |
| parent | 9f783ac0ac08dd51a2d6644a9e58d5e64c4a3b2a (diff) | |
| download | python-setuptools-git-40911c1b16be2247c0698d68b01ca587ed7be677.tar.gz | |
Merge pull request #3741 from mgorny/msvc-hack
Remove msvc hack for Numpy < 1.11.2
Diffstat (limited to 'setuptools/msvc.py')
| -rw-r--r-- | setuptools/msvc.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py index 5d4d7759..26d4e74f 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -15,17 +15,13 @@ import json from io import open from os import listdir, pathsep from os.path import join, isfile, isdir, dirname -import sys import contextlib import platform import itertools import subprocess import distutils.errors -from setuptools.extern.packaging.version import LegacyVersion from setuptools.extern.more_itertools import unique_everseen -from .monkey import get_unpatched - if platform.system() == 'Windows': import winreg from os import environ @@ -217,19 +213,6 @@ def msvc14_get_vc_env(plat_spec): raise -def msvc14_gen_lib_options(*args, **kwargs): - """ - Patched "distutils._msvccompiler.gen_lib_options" for fix - compatibility between "numpy.distutils" and "distutils._msvccompiler" - (for Numpy < 1.11.2) - """ - if "numpy.distutils" in sys.modules: - import numpy as np - if LegacyVersion(np.__version__) < LegacyVersion('1.11.2'): - return np.distutils.ccompiler.gen_lib_options(*args, **kwargs) - return get_unpatched(msvc14_gen_lib_options)(*args, **kwargs) - - def _augment_exception(exc, version, arch=''): """ Add details to the exception message to help guide the user |
