Commits

Anonymous committed 721351b

Not sure if this is a good spot for py2app patches, if not please let me know.

This fixes an issue with copying a different version of Python over to an app/plugin bundle than the one used to run py2app with.

Before this patch you could run into situations where if you run py2app under Python 2.6, and it tried to copy the Python 2.5 framework over to the app bundle, it would be at some point try to copy a path like:

'/Library/Frameworks/Python.framework/Versions/2.5/include/python2.6/pyconfig.h'

Because it used sys.version instead of the version number in the framework info passed in, to figure out what the last folder in the path should be, this simple patch fixes it.

Patch by Dirk Stoop.

Comments (0)

Files changed (2)

 
 .. `virtualenv`_: http://pypi.python.org/pypi/virtualenv
 
+Buf fixes:
+
+- This fixes an issue with copying a different version of Python over 
+  to an app/plugin bundle than the one used to run py2app with.
+
 
 py2app 0.4.0
 ------------

py2app/build_app.py

         indir = os.path.dirname(os.path.join(info['location'], info['name']))
         outdir = os.path.dirname(os.path.join(dst, info['name']))
         self.mkpath(os.path.join(outdir, 'Resources'))
-        pydir = 'python%d.%d'%(sys.version_info[:2])
+        pydir = 'python%d.%d'%(info['version'])
 
         # distutils looks for some files relative to sys.executable, which
         # means they have to be in the framework...