packages/lang/python/numpy/patches/002-avoid-build-user-config-files.patch
Alexandru Ardelean d6252bcb76 numpy: bump to version 1.25.1
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2023-07-16 22:09:55 +03:00

11 lines
378 B
Diff

--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -403,7 +403,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