summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index e0cb3f630..57ddf3396 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -192,7 +192,7 @@ def check_long_double_representation(cmd):
if sys.platform == "win32" and not mingw32():
try:
cmd.compiler.compile_options.remove("/GL")
- except ValueError:
+ except (AttributeError, ValueError):
pass
# We need to use _compile because we need the object filename