Commits

Ian Bicking  committed 15f5a0e Merge

merge

  • Participants
  • Parent commits ca9e5ac, 885e7a1

Comments (0)

Files changed (1)

File virtualenv.py

     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