Skip to content

Commit f8b2e7c

Browse files
committed
Raise ValueError if MKLROOT variable is not set
avoids call to deprecated `get_info` from numpy.distutils
1 parent 04e3207 commit f8b2e7c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ def extensions():
4242
'libraries': ['mkl_rt']
4343
}
4444
else:
45-
try:
46-
mkl_info = get_info('mkl')
47-
except:
48-
mkl_info = dict()
45+
raise ValueError("MKLROOT environment variable not set.")
4946

5047
mkl_include_dirs = mkl_info.get('include_dirs', [])
5148
mkl_library_dirs = mkl_info.get('library_dirs', [])

0 commit comments

Comments
 (0)