summaryrefslogtreecommitdiff
path: root/setuptools/monkey.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-30 19:20:42 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-21 09:27:16 +0100
commit9f783ac0ac08dd51a2d6644a9e58d5e64c4a3b2a (patch)
tree1ddf6c95a24950999c49cd652a94ff7dd8c5af14 /setuptools/monkey.py
parenta81b1303544208467235212ff8a39755e88cee7f (diff)
downloadpython-setuptools-git-9f783ac0ac08dd51a2d6644a9e58d5e64c4a3b2a.tar.gz
Remove msvc hack for Numpy < 1.11.2
Remove the msvc hack that was applied if numpy.distutils were loaded prior to Numpy 1.11.2. These versions date back to June 2016 and no longer build with Python 3.7. At the same time, the hack relies on packaging.version.LegacyVersion that is removed in packaging 22.0.
Diffstat (limited to 'setuptools/monkey.py')
-rw-r--r--setuptools/monkey.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/setuptools/monkey.py b/setuptools/monkey.py
index 77a7adcf..50653fc7 100644
--- a/setuptools/monkey.py
+++ b/setuptools/monkey.py
@@ -157,9 +157,3 @@ def patch_for_msvc_specialized_compiler():
patch_func(*msvc14('_get_vc_env'))
except ImportError:
pass
-
- try:
- # Patch distutils._msvccompiler.gen_lib_options for Numpy
- patch_func(*msvc14('gen_lib_options'))
- except ImportError:
- pass