aboutsummaryrefslogtreecommitdiff
path: root/lang/python/numpy/patches/002-avoid-build-user-config-files.patch
blob: 15c76e3dcff30aad8b8f6065c01afde014df170f (plain)
1
2
3
4
5
6
7
8
9
10
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