change so INCLUDEDIR not existing in the env won't throw an error

This commit is contained in:
Damien Churchill 2009-04-30 16:17:50 +00:00
parent afeb7cf8b1
commit 12dded627e

View file

@ -134,7 +134,7 @@ else:
'/usr/include/python' + python_version,
sysconfig.get_config_var("INCLUDEDIR")
]
for include in os.environ["INCLUDEDIR"].split(":"):
for include in os.environ.get("INCLUDEDIR", "").split(":"):
_include_dirs.append(include)
_library_dirs += [sysconfig.get_config_var("LIBDIR"), '/opt/local/lib']