Re: Problem running PyObjC/py2app app on machine without PyObjC installed

Zachery Bir <[email protected]> Fri, 10 May 2013 10:45:00 -0400
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
On May 10, 2013, at 10:33 AM, Ronald Oussoren <[email protected]> wrote:

> On 10 May, 2013, at 16:16, Zachery Bir <[email protected]> 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.

Excellent, I'll try that next.

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