?

Log in

No account? Create an account

pyobjc

« previous entry | next entry »
Apr. 3rd, 2006 | 03:22 pm

I had some problems running the PyObjC tutorial with version 1.3.7 on an intel mac.

When running python setup.py py2app -A to make the os x app bundle with my first intel build of pyobjc ended up generating a ppc mach-o binary, which combined with only having i386 pyobjc libraries didn't work so well.

Poking around in the pyobjc setup.py script I found the experimental feature "AUTO_UNIVERSAL" which I suspected would make universal binaries. Unfortunately building that didn't work as the final link step had specified the syslibroot in two different ways. So on line 145, I commented out '-lsysroot', '/Developer/SDKs/MacOSX10.4u.sdk" (in the BASE_LDFLAGS.extend() call.)

After that my app bundle ran correctly.

Now if I can just figure out how the isync services work.

Link | Leave a comment | Share

Comments {4}

bob

(no subject)

from: etrepum
date: Apr. 3rd, 2006 11:10 pm (UTC)
Link

On i386, you really ought to be using the universal 2.4.3rc1 build (get it from Ronald's iDisk) and a PyObjC built from SVN. The released 1.3.7 has bugs on i386 because the calling convention changed between the DTKs and the actual released i386 macs. PyObjC from svn also has some experimental patches to py2app to support universal binaries.

Keeping up with the pythonmac-sig (and optionally pyobjc-dev) mailing lists is also a good idea.

Reply | Thread

Diane Trout

(no subject)

from: alienghic
date: Apr. 4th, 2006 06:16 am (UTC)
Link

Ok, so I actually lied, I did build from a subversion checkout, which I guess is why it ended up working.

Though I'm not so fond of trying to keep up with yet more mailing lists, I really should post my experiences on the pythonmac-sig.

(Also I have to ask, how did you even find my post? As far as I could tell from looking at your userinfo we don't know anyone or have any groups in common?)

Reply | Parent | Thread

bob

(no subject)

from: etrepum
date: Apr. 4th, 2006 07:50 am (UTC)
Link

Well if you're using intel you're going to have to keep up with the mailing lists because it's not an officially supported platform yet. That's just how it is. Either wait a few months for everything to shake out, or keep up with the bleeding edge.

I think I found the post off of a technorati tag or keyword rss feed for pyobjc. I don't recall exactly.

Reply | Parent | Thread

Diane Trout

(no subject)

from: alienghic
date: Apr. 4th, 2006 07:20 pm (UTC)
Link

You are of course right about monitoring the mailing list.

But I do want to thank you for the hints.

(And wow metadata is actually used... neat.)

Reply | Parent | Thread