Commits

Gael Pasgrimaud  committed 12d4159

fix #4. thanks to tarek for the tips

  • Participants
  • Parent commits 552c04d

Comments (0)

Files changed (1)

File gp/recipe/pip/__init__.py

             # We compile Universal if we are on a machine > 10.3
             major_version = int(os.uname()[2].split('.')[0])
             if major_version > 7:
+                from distutils.sysconfig import get_config_var
+                target = get_config_var('MACOSX_DEPLOYMENT_TARGET')
                 isysroot = glob.glob('/Developer/SDKs/MacOSX10*')[-1]
                 env.update({
                     'CFLAGS' : "-arch ppc -arch i386 -isysroot %s -O2 -I%s" % (isysroot, include_dir),
                     'LDFLAGS' : "-arch ppc -arch i386 -isysroot %s -I%s" % (isysroot, include_dir),
-                    'MACOSX_DEPLOYMENT_TARGET' : "10.5" in isysroot and "10.5" or "10.3"
+                    'MACOSX_DEPLOYMENT_TARGET' : target
                     })
 
         # call pip