Commits

Brian Rosner committed 03bf404

Handle 2.6.5 OS X framework builds which used --universal-archs=intel as it results in 32- and 64-bit binaries.

Comments (0)

Files changed (1)

     mkdir(bin_dir)
     py_executable = join(bin_dir, os.path.basename(sys.executable))
     if 'Python.framework' in prefix:
-        if py_executable.endswith('/Python'):
+        if re.search(r'/Python(?:-32|-64)*$', py_executable):
             # The name of the python executable is not quite what
             # we want, rename it.
             py_executable = os.path.join(
         #                              browse_thread/thread/17cab2f85da75951
         shutil.copy(
                 os.path.join(
-                    prefix, 'Resources/Python.app/Contents/MacOS/Python'),
+                    prefix, 'Resources/Python.app/Contents/MacOS/%s' % os.path.basename(sys.executable)),
                 py_executable)
 
         # Copy the framework's dylib into the virtual