summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-05-14 17:44:48 -0600
committerCharles Harris <charlesr.harris@gmail.com>2016-05-14 17:44:48 -0600
commit730af6f800d7e9b57ae7a2233aa7ca563603c960 (patch)
tree4169943779cf02a1375f1d208d46755ad1b27566
parent47645ffe12add5983719b2b8b518635c5dded9e7 (diff)
parent1e2bc0e7292c3c9686b49c4573814a772ccd38c8 (diff)
downloadnumpy-730af6f800d7e9b57ae7a2233aa7ca563603c960.tar.gz
Merge pull request #7634 from rgommers/cc_envvar_build
BLD: correct C compiler customization in system_info.py Closes gh-7606.
-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[])