kuuko pushed a commit to branch python-efl-1.8.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=db5854dc07c67ac68b773c3e46db2ba6226ba4ae

commit db5854dc07c67ac68b773c3e46db2ba6226ba4ae
Author: Kai Huuhko <kai.huu...@gmail.com>
Date:   Thu Dec 19 22:27:56 2013 +0200

    setup.py: os.environ.has_key -> os.getenv
    
    For some reason the former fails on the build bot
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index ad6e447..88feb8d 100755
--- a/setup.py
+++ b/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"
 
 

-- 


Reply via email to