mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 14:44:36 +04:00
numpy: Avoid build user config files
This stops numpy from reading .numpy-site.cfg in the build user's home
directory. The code actually tries to find both .numpy-site.cfg and
site.cfg in the user's home directory; this patch prevents both.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 3cee44d888)
This commit is contained in:
committed by
Josef Schlehofer
parent
400936a98c
commit
9c4447a227
@@ -0,0 +1,11 @@
|
||||
--- a/numpy/distutils/system_info.py
|
||||
+++ b/numpy/distutils/system_info.py
|
||||
@@ -400,7 +400,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
|
||||
Reference in New Issue
Block a user