2
0
Эх сурвалжийг харах

Fix python 3 build in osx-specific platform

N0hbdy 8 жил өмнө
parent
commit
a0c6fa68fb

+ 1 - 1
platform/osx/detect.py

@@ -62,7 +62,7 @@ def configure(env):
 
     ## Compiler configuration
 
-    if (not os.environ.has_key("OSXCROSS_ROOT")): # regular native build
+    if "OSXCROSS_ROOT" not in os.environ: # regular native build
         if (env["bits"] == "fat"):
             env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
             env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])