diff --git a/Remove-numpy.distutils.msvccompiler.patch b/Remove-numpy.distutils.msvccompiler.patch new file mode 100644 index 0000000000000000000000000000000000000000..a6df7ef7e01be4d22651217891985a99ec8844e0 --- /dev/null +++ b/Remove-numpy.distutils.msvccompiler.patch @@ -0,0 +1,14 @@ +--- a/numpy/tests/test_public_api.py 2025-06-16 14:19:18.435600257 +0800 ++++ b/numpy/tests/test_public_api.py 2025-06-16 14:40:55.752600257 +0800 +@@ -416,6 +416,11 @@ + warnings.filterwarnings('always', category=DeprecationWarning) + warnings.filterwarnings('always', category=ImportWarning) + for module_name in PRIVATE_BUT_PRESENT_MODULES: ++ if ( ++ (module_name == 'numpy.distutils.msvccompiler' and not sys.platform.startswith('win')) ++ or (module_name == 'numpy.distutils.unixccompiler' and sys.platform.startswith('win')) ++ ): ++ continue + if not check_importable(module_name): + module_names.append(module_name) + diff --git a/numpy.spec b/numpy.spec index 787ace55f144c9f2a3a4eceeeb2d9666fbf2cf96..aba86b41630e44e9a67c24c0eb4f48830ffe2047 100644 --- a/numpy.spec +++ b/numpy.spec @@ -2,13 +2,14 @@ Name: numpy Version: 1.26.4 -Release: 1 +Release: 2 Epoch: 1 Summary: A fast multidimensional array facility for Python License: ASL 2.0 URL: http://www.numpy.org/ Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz +Patch0: Remove-numpy.distutils.msvccompiler.patch BuildRequires: openblas-devel BuildRequires: lapack-devel gcc-gfortran @@ -107,6 +108,9 @@ popd &> /dev/null %exclude %{python3_sitearch}/%{name}/f2py/tests/ %changelog +* Wed Jun 18 2025 yaoxin <1024769339@qq.com> - 1:1.26.4-2 +- Remove numpy.distutils.msvccompiler + * Fri Nov 29 2024 zhang_wenyu1 - 1:1.26.4-1 - Update to 1.26.4