setup.py: os.environ.has_key -> os.getenv

For some reason the former fails on the build bot
This commit is contained in:
Kai Huuhko 2013-12-19 22:27:56 +02:00
parent 70fead80f8
commit db5854dc07
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ script_path = os.path.dirname(os.path.abspath(__file__))
# XXX: Force default visibility. See phab T504
if os.environ.has_key("CFLAGS") and "-fvisibility=" in os.environ["CFLAGS"]:
if os.getenv("CFLAGS") is not None and "-fvisibility=" in os.environ["CFLAGS"]:
os.environ["CFLAGS"] += " -fvisibility=default"