aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-03-06 14:23:11 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-03-06 14:23:11 +0000
commit1eae3e8f1509396e44a8a0a311b19c3ec01e064e (patch)
tree75ce2d7ab1ef9c458d34085df2468ee1411e6d40
parentWe need the includedir always on travis (diff)
downloadpygensvm-1eae3e8f1509396e44a8a0a311b19c3ec01e064e.tar.gz
pygensvm-1eae3e8f1509396e44a8a0a311b19c3ec01e064e.zip
Correct use of os.path.split
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 59f0f50..ce66bfe 100644
--- a/setup.py
+++ b/setup.py
@@ -172,7 +172,7 @@ def _skl_get_blas_info():
libdir = blas_info.get("library_dirs", [])
libdir = libdir[0] if libdir else None
if libdir:
- base = os.path.join(os.path.split(libdir)[:-1])
+ base = os.path.split(libdir)[0]
blas_info["include_dirs"] = os.path.join(base, "include")
print("\n\n*** blas_info: \n%r\n\n ***\n\n" % blas_info)