Re: [Pyobjc-dev] Problem running PyObjC/py2app app on machine without PyObjC installed
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2013-05-10 14:33:10
|
On 10 May, 2013, at 16:16, Zachery Bir <zb...@ur...> wrote: >> >> >> What are the OSX versions of the machine where you build PyObjC and where you tried to start the application? This might be a deployment target issue, that is a binary with a deployment target that is higher than the OS you try to run the app on. > > I'm building Zem on 10.8.2, but I get the error on other 10.8.2 machines without PyObjC installed. The specific error I pasted earlier came from 10.7.5. What's the best way to declare deployment target in a totally script-driven py2app environment? That's the easy part, you don't have to :-) The harder part is building the binaries for Python and all extensions that you use. The easiest way is to use a Python installation with the proper deployment target, I use the following configure line to build a Python framework that I can use on OSX 10.5: $ ../configure --enable-framework --with-framework-name=Python105 --enable-universalsdk=/ --with-universal-archs=intel MACOSX_DEPLOYMENT_TARGET=10.5 Then install all libraries that you use in Python105.framework and use that to create the application. NOTE: This works for Python itself and PyObjC, but you may have to do more work when you use other C libraries. One problem I've run into in the past is that some configure scripts quite helpfully picked up that the build machine had an API available, but that API wasn't available on older OSX releases. Actually building stuff for deployment on older OSX systems isn't too hard, but can require some tinkering. That's ignoring deployment to PPC machine, AFAIK the only supported way to to that is to keep a 10.5 machine around (for example in a VM). There are some hacks to install Xcode 3 on Lion, but I haven't tried those and I've seen reports that those hacks don't work on 10.8. I might be tempted to start a project for building binary packages once the dust settles on support for wheel packages in the stdlib (with some luck before Python 3.4 is released). Ronald > > Thanks, > > Zac > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |