Re: [Pyobjc-dev] Three issues with PyObjC under Snow Leopard
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2009-10-07 06:10:32
|
On 7 Oct, 2009, at 3:09, David Eppstein wrote: > Just a follow-up on all this. The fix to the way I was wrongly calling > super.init worked and my app is happy again. Because it all works I > haven't yet tested the code to tell objc to be more verbose when an > exception hits the border, but I assume that works too > > The XCode version of the app is about 200k and the setup.py version is > about 16Mb, I assume because the setup.py version includes its own > copy of Python. I haven't yet decided which of these two build styles > is preferable; under 10.4 and before I would have definitely wanted > the one that included its own Python, because otherwise there was no > way of counting on it working on anyone else's computer, but is that > still necessary these days? The setup.py version is larger because py2app copies more stuff into the application bundle. Are you using Apple's python or do you have a separate python install? > > However, I still have one minor hangup that is causing the setup.py > version not to work: my source code has a .xib file inside > English.lproj which XCode helpfully translates to a .nib while > packaging up the app, but setup.py doesn't seem to know to do that > translation. If I manually move XCode's nib into the English.lproj of > the app created by setup.py, it all works, so I'm pretty sure that's > the only problem. Is there a way of doing the xib-to-nib conversion > outside of xcode under the control of setup.py? The most recent version of py2app has support for compiling .xib files. Ronald > > On Tue, Oct 6, 2009 at 8:46 AM, Ronald Oussoren <ron...@ma... > > wrote: >> >> On 6 Oct, 2009, at 17:42, David Eppstein wrote: >> >>> >>> """ >>> Script for building LaTeX Unicodifier >>> D. Eppstein, October 2009 >>> >>> Usage: >>> python setup.py py2app >>> """ >>> >>> from distutils.core import setup >>> import py2app >>> >>> plist = { >>> 'CFBundleDevelopmentRegion': 'English', >>> 'CFBundleExecutable': 'LaTeX Unicodifier', >>> 'CFBundleIconFile': 'LaTeX Unicodifier.icns', >>> } >>> >>> setup( >>> app = ['Latex.py', 'LaTeX_Unicodifier.py'], >> >> Use: >> app = ['main.py'], >>> >>> data_files = ['English.lproj', 'LaTeX Unicodifier.icns'], >>> options = { 'py2app': {'plist': plist} } >>> ) >> >> The interface design for py2app was copied from py2exe, which is >> why you can >> list several applications in the 'app' argument. Having more than one >> application in setup.py is not implemented, and is luckily also not >> what you >> need. >> >> Ronald >> >> >> >> |