Re: [Pythonmac-SIG] py-appscript 0.20.3, 0.21.0 and impending 1.0.0 release (addendum)
All, > One more thing: I've chucked a preliminary 0.21.0 into the svn trunk. > > A couple of outstanding issues/omissions have been frustrating me > recently, namely the annoying bouncing Dock icon I've noticed a caveat: The bouncing Dock icon is gone when using appscript 0.21.0 on a version of Python that was built against 10.5 or 10.6 SDKs. (Yay!) However, the wretched thing still appears when using a Python installation built against a 10.4 SDK - i.e. anything running on Tiger; the python.org framework distros. (Boo!) I suspect the 10.4 Process Manager APIs are more aggressive in escalating non-GUI processes to GUI status when called. As I am running out of system APIs for identifying running processes and the application bundles that launched them, this is probably something I can't/will not address as it would likely involve making ugly, fragile kludges in the appscript code. Bouncing icons in 10.4 I don't much care about as most folks are on newer OSes by now. Bouncing icons in 10.5 and 10.6 are definitely undesirable, but they're a consequence of the design of the Python framework and the design of certain OS X APIs. Appscript is a victim of circumstance here: I need to use those APIs, and I'm not willing to make my code fragile and failure-prone just to avoid irritating but technically harmless behaviours coming from some Python distributions and OS X. I am curious though (and this is probably a question for Ronald): how does PyObjC 2.x fare on python.org frameworks? If the framework is built against the 10.4 SDK, then presumably Cocoa APIs introduced in 10.5+ won't be available to PyObjC there? Am I correct? If so, what's the recommended solution for 10.5/10.6 users who wish to use a non-Apple Python installation and be able to access 10.5/10.6-only APIs (e.g. build your own Python framework?)? Perhaps it's time python.org started distributing framework builds for 10.5 and later? Any thoughts, advice, etc? Thanks, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] can't build extensions for python.org 3.1.1 framework
Hey, Anyone tried building extensions for python.org's prebuilt Python 3.1.1 framework on 10.6.2? After remembering to install the 10.4u SDK for Xcode 3.2.1, I'm getting a bunch of 'missing header' errors, e.g.: $ cd py-appscript $ python3 setup.py install ... building 'aem.ae' extension gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -c appscript_3x/ext/ae.c -o build/temp.macosx-10.3-fat-3.1/appscript_3x/ext/ae.o -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 In file included from /Library/Frameworks/Python.framework/Versions/3.1/include/python3.1/bytearrayobject.h:9, from /Library/Frameworks/Python.framework/Versions/3.1/include/python3.1/Python.h:69, from appscript_3x/ext/ae.c:14: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory ... The header files in question do exist, e.g.: $ ls -l /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h -rw-r--r-- 1 root wheel 234 May 4 2007 /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h Any relation to the 2.6.3 problems? Or something else? Ta, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] py-appscript 0.20.3, 0.21.0 and impending 1.0.0 release (addendum)
has wrote: > The bouncing Dock icon is gone when using appscript 0.21.0 on a version of > Python that was built against 10.5 or 10.6 SDKs. (Yay!) Yay! Now I can can my private copy of Python with the LSUIElement flag set... > Perhaps it's time python.org started distributing framework builds for 10.5 > and later? Seems like a good thought. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] can't build extensions for python.org 3.1.1 framework
In article , has wrote: > Anyone tried building extensions for python.org's prebuilt Python 3.1.1 > framework on 10.6.2? After remembering to install the 10.4u SDK for Xcode > 3.2.1, I'm getting a bunch of 'missing header' errors, e.g.: > > $ cd py-appscript > $ python3 setup.py install > ... > building 'aem.ae' extension > gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 > -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -c > appscript_3x/ext/ae.c -o build/temp.macosx-10.3-fat-3.1/appscript_3x/ext/ae.o > -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 > In file included from > /Library/Frameworks/Python.framework/Versions/3.1/include/python3.1/bytearrayo > bject.h:9, > from > /Library/Frameworks/Python.framework/Versions/3.1/include/pyt > hon3.1/Python.h:69, > from appscript_3x/ext/ae.c:14: > /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: > No such file or directory > ... > > > The header files in question do exist, e.g.: > > $ ls -l /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h > -rw-r--r-- 1 root wheel 234 May 4 2007 > /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h > > > Any relation to the 2.6.3 problems? Or something else? 3.1.1 was released before 10.6 and, thus, lacks the build fixes for extension builds on 10.6 (i.e. the ones that made it into 2.6.3 & 2.6.4). The main issue is you need to build with gcc-4.0. IIRC, this should work: $ export CC=/usr/bin/gcc-4.0 -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig