[Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?
kw at codebykevin.com
Wed Nov 9 16:12:29 CET 2011
On 11/8/11 11:41 PM, Kevin Walzer wrote:
> Is there any way I can get this executable linked to
> /System/Library/Frameworks/Cocoa.framework? I didn't think
> install_name_tool would do the trick, as that just rewrites links,
> rather than adding them. A
> Any suggestions are appreciated.
I solved the problem by hacking the setup.py file in apptemplates (in
the py2app source tree) to add an LDFLAGS parameter with a '-framework
Cocoa' linker flag. Ugly, but it meets my needs. Probably not worth it
to submit a patch.
Code by Kevin
More information about the Pythonmac-SIG