Commits

rona...@mac.com  committed c532555

Fix for 'py2app -A' on 64-bit builds of python.

  • Participants
  • Parent commits 74b3d92

Comments (0)

Files changed (3)

   framework is not named 'Python.framework'.
 
 Bug fixes:
+- Use modern API's in the alias-build bootstrap code, without
+  this 'py2app -A' will result in broken bundles on a 64-bit build
+  of Python. 
+  (Patch contributed by James R Eagan)
 - Try both 'import Image' and 'from PIL import Image' in the PIL
   recipe.
   (Patch contributed by Christopher Barker)

File py2app/bootstrap/boot_aliasapp.py

     site.addsitedir(os.environ['RESOURCEPATH'])
     for (script, path) in scripts:
         alias = Carbon.File.Alias(rawdata=script)
-        target, wasChanged = alias.ResolveAlias(None)
+        target, wasChanged = alias.FSResolveAlias(None)
         if not os.path.exists(path):
             path = target.as_pathname()
         sys.path.append(os.path.dirname(path))

File py2app/bootstrap/boot_aliasplugin.py

     site.addsitedir(os.environ['RESOURCEPATH'])
     for (script, path) in scripts:
         alias = Carbon.File.Alias(rawdata=script)
-        target, wasChanged = alias.ResolveAlias(None)
+        target, wasChanged = alias.FSResolveAlias(None)
         if not os.path.exists(path):
             path = target.as_pathname()
         sys.path.append(os.path.dirname(path))