packages/lang/python/numpy/patches/002-avoid-build-user-config-files.patch
Andy Syam fb2bf1c737 numpy: update to version 1.26.2
https://github.com/numpy/numpy/releases

NumPy 1.26.2 Release Notes
NumPy 1.26.2 is a maintenance release that fixes bugs and regressions
discovered after the 1.26.1 release. The 1.26.release series is the last
planned minor release series before NumPy 2.0. The Python versions
supported by this release are 3.9-3.12.

Signed-off-by: Andy Syam <privasisource@gmail.com>
2024-01-02 19:34:05 -08:00

11 lines
378 B
Diff

--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -404,7 +404,7 @@ def get_standard_file(fname):
pass
else:
user_file = os.path.join(f, fname)
- if os.path.isfile(user_file):
+ if "_PYTHON_HOST_PLATFORM" not in os.environ and os.path.isfile(user_file):
filenames.append(user_file)
# Local file