[Pythonmac-SIG] py2app sip recipe and Qt plugins

2009-09-19 Thread Marc-Antoine Parent
Good day! I was trying my hand at wrapping a PyQt application, and I stumbled on the plugin issue that seems to have plagued many here, where the plugins load another copy of the Qt frameworks, indicated as such: On Mac OS X, you might be loading two sets of Qt binaries into the same proce

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 77, Issue 16

2009-09-19 Thread Edward Hartley
On 14 Sep 2009, at 16:05, [email protected] wrote: Send Pythonmac-SIG mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/pythonmac-sig or, via email, send a messag

Re: [Pythonmac-SIG] machine architecture 32/64 with Python 2.6 on Snow Leopard?

2009-09-19 Thread Edward Moy
I looked into the code for platform.architecture(), and it basically runs the "file" command on /usr/bin/python. If the output contains the string "64-bit", it will return "64bit" as the first tuple. So it depends on what real question you are trying to answer, because in SnowLeopard, /us

Re: [Pythonmac-SIG] machine architecture 32/64 with Python 2.6 on Snow Leopard?

2009-09-19 Thread Bill Janssen
You could also use other test I've seen: def arch(): import ctypes return {4: "i386", 8: "x86_64"}[ctypes.sizeof(ctypes.c_size_t)] Bill ___ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac

Re: [Pythonmac-SIG] [BangPypers] python-sap webservices

2009-09-19 Thread bhaskar jain
"__future__ is a special module used to change the behaviour of the parser, so it is extremely important that it occur in the beginning of your module. Just move the imports to the top of your code, and that's all there is to it." On Thu, Sep 10, 2009 at 10:02 AM, sudhakar s wrote: > Hi, Thi

Re: [Pythonmac-SIG] Link against Python Framework

2009-09-19 Thread Jason Foreman
On Sep 10, 2009, at 5:09 AM, Georg Seifert wrote: If you want to make absolutely sure that Apple can't break you, you could bundle the version of Python.framework upon which you depend into your app. However, that's probably not necessary unless you want to use a newer version of Python

Re: [Pythonmac-SIG] Link against Python Framework

2009-09-19 Thread Jason Foreman
On Sep 10, 2009, at 10:29 AM, Jason Foreman wrote: On Sep 10, 2009, at 5:09 AM, Georg Seifert wrote: How do I specify the version to link with. The 10.5 SDK links against python 2.5 and the 10.6 SDK to 2.6. But what if I need the 10.6 SKD but want to link to python 2.5? I'll try to look f

Re: [Pythonmac-SIG] Using Python 2.5 on Snow Leopard

2009-09-19 Thread Nicholas Riley
On Fri, Sep 11, 2009 at 08:02:10PM +0100, Thijs Triemstra | Collab wrote: > > On 11 Sep 2009, at 18:50, Bill Janssen wrote: > > >I was happy to see that Python 2.5 still shipped with SL, but now I'm > >less happy. I can't seem to compile PIL for Python 2.5 on Snow > >Leopard. > > Hm, haven't

[Pythonmac-SIG] Icon in py2app

2009-09-19 Thread Manuel Kaufmann
Hello! I'm making an app with py2app[1] utility but I can't put my icon in the dock bar. When I compile my app with py2app I see the icon in my app folder when I explore it with Finder, but when I run my app the icon doesn't appear in my dock bar. I'm using "CFBundleIconFile"[2] option in my "plis

[Pythonmac-SIG] Using Setuptools with macPython

2009-09-19 Thread Saint One
Hi all, I have mac os x 10.4 which was shipped with python2.3. Now I am trying to work with eazyInstall ( http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions) with python2.5. I have upgraded to python2.5 now, but there seems inconsistency going through my installation dir

[Pythonmac-SIG] py2app sip recipe and Qt plugins

2009-09-19 Thread Marc-Antoine Parent
Good day! I was trying my hand at wrapping a PyQt application, and I stumbled on the plugin issue that seems to have plagued many here, where the plugins load another copy of the Qt frameworks, indicated as such: On Mac OS X, you might be loading two sets of Qt binaries into the same proce