Re: [Pythonmac-SIG] Framework build of 2.4.2
On 27-okt-2005, at 23:37, Bob Ippolito wrote: > > On Oct 27, 2005, at 2:29 PM, Samuel M. Smith wrote: > > >> Will there be a framework installer for python 2.4.2? >> > > Not particularly soon unless someone else does it. I can boot into 10.3 if necessary. How does one build the "unofficial offical" Python installer? I suppose by running the 'build' script in Mac/OSX/Dist. Do I need to install other software before trying to build the installer? Waste springs to mind, BerkeleyDB is another one. > > The problem is that my G4 with 10.3 still on it is sitting in storage > and I don't plan on getting it out any time soon. > > I could try and build something with the SDK, but that's hard, I > wouldn't be able to test it, and I don't have a lot of time for > Python stuff right now. I'd guess that building against an SDK will be hard. I'll probably look into doing it for PyObjC in the future, as a method for building a single binary distribution of PyObjC that works on as much OS versions as possible while giving full access all features in the frameworks. > > I don't want to deal with having a 10.4 specific version of Python > out there (when there's no good reason to have one), so that's not > really an option I'm going to explore. Is there any advantage of building on 10.4? The only possible advantage I can come up with is support for new APIs in core library, although I wouldn't know a specific example. Ronald > > -bob > > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Writting C extension in Mac os X tiger
>> > > You forgot to use distutils to compile it, instead of Xcode. > Specifically, the problem was that you linked to a different > problem than you are attempting to use it from, potentially with > incorrect linker flags. distutils solves this problem for you > because it knows which Python to link to and which flags to use by > way of the Python interpreter you invoked setup.py with. > > Use distutils. > Thank you all for the help. Well, I know what I have to do now : learn to use distutils :-) Regards Jaonary Rabarisoa [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Drawing to the Clipboard in wxPython?
I have been searching for ways to draw to the clipboard rather than the wxWindow/screen in a wxPython app. I did this a long time ago in C on Mac OS 8. Then I could paste into drawing programs or MS Word or whatever as a graphical object. I could even edit the graphic in drawing programs. Is it doable in wxPython? I searched the wx libraries and found a lot about SetData and AddData to put data on the Clipboard after you open it and get ownership (not totally sure what that all means), but I haven't a clue how to use these object to capture drawing calls (e.g. DrawRect), if that's even the right way to do it. If anyone knows of any example code doing the above stuff, would you please point me to it. Thanks. -- Cheers, Lou Pecora Code 6362 Naval Research Lab Washington, DC 20375 USA Ph: +202-767-6002 email: [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Framework build of 2.4.2
On Oct 28, 2005, at 5:03 AM, Ronald Oussoren wrote: > On 27-okt-2005, at 23:37, Bob Ippolito wrote: > > >> On Oct 27, 2005, at 2:29 PM, Samuel M. Smith wrote: >> >> >> >>> Will there be a framework installer for python 2.4.2? >>> >>> >> >> Not particularly soon unless someone else does it. >> > > I can boot into 10.3 if necessary. How does one build the "unofficial > offical" Python installer? I suppose by running the 'build' script in > Mac/OSX/Dist. To my recollection, yes. There are three caveats that I can remember though: 1. It does not make a pydoc symlink for /usr/local/bin, that should be fixed (a make frameworkinstall issue) 2. It might make a header file that won't allow extensions to compile on 10.4, check that first (that's what the Tiger fix is) 3. Something to do with the documentation and IDLE and/or PythonIDE might not work? I don't remember the details, and I never tried to fix it. > Do I need to install other software before trying to build the > installer? Waste springs to mind, BerkeleyDB is another one. I would suggest having Waste, BerkeleyDB, readline and TclTkAqua installed when building it, and I would make sure that BerkeleyDB and readline are static so that there aren't any dylib dependencies there (Waste is only available static anyway). It's good to have TclTkAqua there, although it will not function on 10.3 systems without TclTkAqua installed, it *will* function on all 10.4 systems because TclTkAqua ships by default and it will look in / System/Library/Frameworks when it's not found in /Library/Frameworks. -bob ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig