--- 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