change so INCLUDEDIR not existing in the env won't throw an error
This commit is contained in:
parent
afeb7cf8b1
commit
12dded627e
2
setup.py
2
setup.py
@ -134,7 +134,7 @@ else:
|
|||||||
'/usr/include/python' + python_version,
|
'/usr/include/python' + python_version,
|
||||||
sysconfig.get_config_var("INCLUDEDIR")
|
sysconfig.get_config_var("INCLUDEDIR")
|
||||||
]
|
]
|
||||||
for include in os.environ["INCLUDEDIR"].split(":"):
|
for include in os.environ.get("INCLUDEDIR", "").split(":"):
|
||||||
_include_dirs.append(include)
|
_include_dirs.append(include)
|
||||||
|
|
||||||
_library_dirs += [sysconfig.get_config_var("LIBDIR"), '/opt/local/lib']
|
_library_dirs += [sysconfig.get_config_var("LIBDIR"), '/opt/local/lib']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user