setup.py: os.environ.has_key -> os.getenv
For some reason the former fails on the build bot
This commit is contained in:
parent
70fead80f8
commit
db5854dc07
2
setup.py
2
setup.py
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue