From 1eae3e8f1509396e44a8a0a311b19c3ec01e064e Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 6 Mar 2020 14:23:11 +0000 Subject: Correct use of os.path.split --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3