Skip to content

Commit 93af947

Browse files
author
Vahid Tavanashad
committed
use os.environ.get
1 parent 5af9722 commit 93af947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from setuptools import Extension, setup
3232

3333
def extensions():
34-
mkl_root = os.environ["MKLROOT"]
34+
mkl_root = os.environ.get("MKLROOT", None)
3535
if mkl_root:
3636
mkl_info = {
3737
"include_dirs": [join(mkl_root, "include")],

0 commit comments

Comments
 (0)