On 30 Apr, 2012, at 15:25, Kevin Walzer wrote:

> I've had an app rejected from the Mac App Store because required symlinks 
> were not present in the bundled Python framework:
> 
> Malformed Framework - The framework bundle Python 
> (QuickWho.app/Contents/Frameworks/Python.framework/Versions/2.7) must contain 
> a symbolic link 'Python' -> 'Versions/Current/Python'. Refer to the Anatomy 
> of Framework Bundles for more information.
> 
> Malformed Framework - The framework bundle Python 
> (QuickWho.app/Contents/Frameworks/Python.framework/Versions/2.7) must contain 
> a symbolic link 'Resources' -> 'Versions/Current/Resources'. Refer to the 
> Anatomy of Framework Bundles for more information.
> 
> Malformed Framework - The framework bundle Python 
> (QuickWho.app/Contents/Frameworks/Python.framework/Versions/2.7) 'Versions' 
> directory must contain a symbolic link 'Current' resolving to a specific 
> version directory. Refer to the Anatomy of Framework Bundles for more 
> information.
> 
> These symlinks are present in the original framework on my system, but they 
> appear to be stripped out by py2app.
> 
> Is there a flag I can pass to py2app to retain these symlinks? I can try to 
> add them manually later in my build script, but it's a pain and I'd rather 
> have py2app not strip them out in the first place.

That's a lame restriction of the App Store. The "Current" symlink is only used 
while linking and is useless for embedded frameworks.   But as Apple is 
unlikely to change their requirements because I don't like what they are doing 
py2app will have create application bundles that follow their requirements.

Py2app currently does not have an option to recreate the "Current" symlink when 
copying frameworks into the application bundle. 

I've filed a feature request in the py2app tracker that asks to always recreate 
the "Current" symlink: 
https://bitbucket.org/ronaldoussoren/py2app/issue/43/add-current-symlink-to-embedded-frameworks

Ronald

> 
> --Kevin
> 
> -- 
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to