summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-12-17 00:17:27 -0600
committerxoviat <xoviat@users.noreply.github.com>2017-12-17 00:17:27 -0600
commit70572e4a2dc6c76818d142f987176f47486d947f (patch)
tree1365ecea9ab609ae963a65d774bff2c176b55f88 /numpy/distutils
parent9d054c141b084546810486f91e763f3eb89af633 (diff)
downloadnumpy-70572e4a2dc6c76818d142f987176f47486d947f.tar.gz
BUG: distutils: prefix library name
In linux and particulary MinGW on windows, library names may be prefixed with "lib." However, if the library name is prefixed with "lib" on MSVC or ABI-equivalent (clang/intel), the prefix should not be excluded from the library name. This caused system_info to find "libopenblas" or "libsuitesparse" but then add "openblas" to the library names, which is of course problematic because MSVC would not look for "libopenblas" but rather "openblas."
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/system_info.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index bea120cf9..5bda213e7 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -804,6 +804,8 @@ class system_info(object):
# doesn't seem correct
if ext == '.dll.a':
lib += '.dll'
+ if ext == '.lib':
+ lib = prefix + lib
return lib
return False