summaryrefslogtreecommitdiff
path: root/numpy/distutils/system_info.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2016-05-14 19:12:22 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2016-05-14 19:12:22 +0200
commit1e2bc0e7292c3c9686b49c4573814a772ccd38c8 (patch)
tree341f4f3865acc116bf64bd250733ff1884fcded7 /numpy/distutils/system_info.py
parent43e061b6bd67ff2d04c3891e2f4dd4d6dd683b26 (diff)
downloadnumpy-1e2bc0e7292c3c9686b49c4573814a772ccd38c8.tar.gz
BLD: correct C compiler customization in system_info.py Closes gh-7606.
Diffstat (limited to 'numpy/distutils/system_info.py')
-rw-r--r--numpy/distutils/system_info.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index 254d6a8d4..9f5f4e6c0 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -134,9 +134,9 @@ if sys.version_info[0] < 3:
else:
from configparser import NoOptionError
from configparser import RawConfigParser as ConfigParser
-# It seems that some people are importing ConfigParser from here so is
-# good to keep its class name. Use of RawConfigParser is needed in
-# order to be able to load path names with percent in them, like
+# It seems that some people are importing ConfigParser from here so is
+# good to keep its class name. Use of RawConfigParser is needed in
+# order to be able to load path names with percent in them, like
# `feature%2Fcool` which is common on git flow branch names.
from distutils.errors import DistutilsError
@@ -1710,6 +1710,7 @@ class blas_info(system_info):
# cblas or blas
res = False
c = distutils.ccompiler.new_compiler()
+ c.customize('')
tmpdir = tempfile.mkdtemp()
s = """#include <cblas.h>
int main(int argc, const char *argv[])
@@ -1790,6 +1791,7 @@ class openblas_lapack_info(openblas_info):
def check_embedded_lapack(self, info):
res = False
c = distutils.ccompiler.new_compiler()
+ c.customize('')
tmpdir = tempfile.mkdtemp()
s = """void zungqr();
int main(int argc, const char *argv[])