From 9f783ac0ac08dd51a2d6644a9e58d5e64c4a3b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 30 Dec 2022 19:20:42 +0100 Subject: 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. --- setuptools/monkey.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'setuptools/monkey.py') 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 -- cgit v1.2.1