py2app strips symlinks in frameworks, need to keep them

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

py2app strips symlinks in frameworks, need to keep them

Kevin Walzer-5
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.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: py2app strips symlinks in frameworks, need to keep them

Charlie Clark-6
Am 30.04.2012, 15:25 Uhr, schrieb Kevin Walzer <[hidden email]>:

> 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.

You might try:

--semi-standalone (-s)  depend on an existing installation of Python

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: py2app strips symlinks in frameworks, need to keep them

Kevin Walzer-5
On 4/30/12 9:35 AM, Charlie Clark wrote:

>
> --semi-standalone (-s) depend on an existing installation of Python
>

Not an option in my case, alas, but thanks for the suggestion. --K

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