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 8726199f6c
commit e2d28bef6a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ ELM_MIN_VERSION = "1.8.99"
# 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"