Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary? [SOLVED!]

2009-01-08 Thread Joe Strout
Daniel Miller wrote: The root cause of most of the trouble was the broken 5.1 MySQL distribution (bug #41940 on the MySQL tracker). I tried patching it up as Ned suggested, but that didn't work for me. However, going back to 5.0 did work. Out of curiosity, what does the mysql_config comman

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary? [SOLVED!]

2009-01-08 Thread Joe Strout
Woot! I finally got my MySQLdb-using Python app working as a Universal Binary! (Trying to make sure all the relevant keywords are there for future googlers.) The root cause of most of the trouble was the broken 5.1 MySQL distribution (bug #41940 on the MySQL tracker). I tried patching it up

[Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-08 Thread Joe Strout
stead uses setuptools. So: does anyone have a clue how I can convince setuptools to build a PPC binary (or better yet, a Universal one) on an Intel machine? This may or may not also be involved: <http://bugs.python.org/setuptools/issue19> Any advice will be greatly appreciated... Th

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-08 Thread Joe Strout
Ned Deily wrote: Note, I haven't tested this so YMMV. If you can get away with using a 5.0 client, that should work. But if you just fix-up the 5.1 libs with a couple of copies that should work, too. Go to the directory of your mysql installation, probably something like: cd /usr/local/m

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Joe Strout
Ned Deily wrote: Hmm, there's omething odd about that download. ... $ file libmysqlclient_r.16.0.0.dylib libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 architectures libmysqlclient_r.16.0.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386 libmysq

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Joe Strout
Christopher Barker wrote: MySQLdb folder containing a bunch of other .pyc files. Nothing else though; just Python bytecode. Is it possible that MySQLdb is written entirely in Python, and was never the problem at all? no -- there is C code that needs to be compiled, I"m pretty sure anyway!

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Joe Strout
Christopher Barker wrote: the extensions that distutils builds will be called something like _mysql. It will be in site_packages, and in your app bundle, along with .py and .pyc files, NOT in with FrameWorks. Ah, I didn't know that. Poking around in Resources/lib (and including unzipping si

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Joe Strout
Daniel Miller wrote: So: does anyone have a clue how I can convince setuptools to build a PPC binary (or better yet, a Universal one) on an Intel machine? I just downloaded the mysqldb module from sourceforge to have a look at how it decides how to compile its C extension. It looks like it's

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Joe Strout
Christopher Barker wrote: sorry to hear that you are still struggling with this. I appreciate the sympathy (and the help). So: does anyone have a clue how I can convince setuptools to build a PPC binary (or better yet, a Universal one) on an Intel machine? setuptools using distutils to bui

[Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Joe Strout
I'm (still) trying to make a neatly packaged Python app that works on both PPC and Intel Macs. All is good except for mysqldb; following the procedure I've documented at , my app bundle contains an Intel-only binary of the mysqldb library (libm

Re: [Pythonmac-SIG] How to install latest 2.5 in OS X 10.4?

2008-12-31 Thread Joe Strout
Christopher Barker wrote: I guess those instructions are old -- we really need to update them! I poked around via the instructions for 10.5, and found , That site is no longer maintained. Partly because python.org and many package maintainers are sim

Re: [Pythonmac-SIG] How to install latest 2.5 in OS X 10.4?

2008-12-30 Thread Joe Strout
Hmm, I'm not sure why that appeared twice. But anyway, possibly answering my own question... Joe Strout wrote: So... if following the directions on python.org isn't going to work, how exactly should I get the latest 2.5 framework release of Python installed on 10.4? I poked arou

[Pythonmac-SIG] How to install latest 2.5 in OS X 10.4?

2008-12-30 Thread Joe Strout
I'm still struggling to build Mac apps (based on wxPython and MySQL) that work on any 10.4 or 10.5 machine. I understand that the general picture is: 1. Install the latest python.org Python release on 10.4 (make sure it's a universal binary). 2. Install setuptools (including py2app). 3. Inst

[Pythonmac-SIG] Python-Ogre on Mac OS X?

2008-11-26 Thread Joe Strout
I've just stumbled across the Python-Ogre project (http://www.pythonogre.com/ ). It looks fantastic, but the only binary is for Windows. That seems a little silly for a set of cross-platform-language bindings to a cross-platform library. :) There are older build instructions for Mac OS X

Re: [Pythonmac-SIG] PyColourChooser don't works

2008-11-26 Thread Joe Strout
On Nov 26, 2008, at 8:16 AM, Andrea Gavana wrote: Its been fixed in newer versions of wxpthon. Update to 2.8.8 or higher. Or try and get some ideas from CubeColourDialog: http://xoomer.alice.it/infinity77/main/freeware.html#cubecolourdialog Hey, I never noticed Andrea's page before -- if t

Re: [Pythonmac-SIG] python help() >modules problem

2008-11-22 Thread Joe Strout
Hi George, I don't have anything helpful to say on all of your questions, but I think I can help with this one: On Nov 22, 2008, at 1:54 PM, George Wright wrote: If I try to run wx demos from the developer examples I get a similar response: python2.5 /Developer/Examples/wxWidgets/wxPytho

Re: [Pythonmac-SIG] thanks for PyObjC!

2008-11-08 Thread Joe Strout
On Nov 7, 2008, at 7:24 PM, Bill Janssen wrote: I've been using the Python-Cocoa application template in Xcode 3, and I'm just blown away by how *easy* it is to develop native Cocoa apps with Python. Simply amazing. Nicest UI toolkit I've ever played with, too. I agree, PyObjC rocks and its

[Pythonmac-SIG] py2app and plist entries

2008-10-31 Thread Joe Strout
I tried py2app on my wxPython for the first time today, expecting it to be a long and painful chore -- and was pleasantly surprised that it worked right off the bat. Now I'm wondering a bit about options, mainly for things that end up in the Info.plist file. I do see that I could build my

[Pythonmac-SIG] MySQLdb on OS X?

2008-10-30 Thread Joe Strout
I'm trying to get a project that uses MySQL going on OS X. Apparently Apple's default installation of Python doesn't include MySQLdb, so I downloaded it from , checked that mysql_config is in my path, and then did a "python setup

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-22 Thread Joe Strout
On Oct 22, 2008, at 12:57 PM, Christopher Barker wrote: Here are my issues, relating to the list I sent earlier about Peppy: (several valid points, mostly about Editra's handling of multiple languages) I'm not so concerned about handling of multiple languages, as I don't intend to use it

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-22 Thread Joe Strout
On Oct 22, 2008, at 7:21 AM, Brendan Simons wrote: I'll offer a counter opinion to say that I quite like Komodo. I appreciate the input. However, I have to admit a bias towards an IDE actually written in Python, for several reasons. If you can live with just text highlighting and the abil

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-21 Thread Joe Strout
On Oct 21, 2008, at 10:59 AM, Henning Hraban Ramm wrote: Otherwise I would have stayed with SPE (FYI: it includes the debugger Winpdb and the GUI builder wxGlade; I never used them). I tried SPE last night, and it looks promising... but the developer seems to be determined to discourage new

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-20 Thread Joe Strout
On Oct 20, 2008, at 3:59 PM, Kevin Walzer wrote: WingIDE is written using PyGtk, not wxPython. So yeah, it's an ugly X11 app. Ah, that explains it. There are lots of Python-aware editors out there (i.e. with syntax awareness) but nothing as slick as Xcode is for Cocoa development, and ce

[Pythonmac-SIG] IDE that doesn't look awful?

2008-10-20 Thread Joe Strout
Hi all, I'd heard good things about Wing IDE (including that it was written with wxPython, and I know that wxPython can make decent Mac apps with a bit of care). So I downloaded the disk image today, and man -- is it ever ugly! It's really not a Mac app at all, but an X-Window app, with

[Pythonmac-SIG] Python-Mac wiki?

2008-10-16 Thread Joe Strout
This mailing list is great, but it'd be nice to have a wiki we could all contribute docs, explanations, and examples to as well. Is there something like that already set up? Thanks, - Joe -- Joe Strout [EMAIL PROTECTED] Words of wisdom from Helen Philpot:

[Pythonmac-SIG] Speech Recognition example (was Re: Example of stand-alone NSRunLoop)

2008-10-15 Thread Joe Strout
Thanks, Jack and Ronald. Using currentRunLoop() or mainRunLoop() makes it the run loop work. I found that I also needed to call setListensInForegroundOnly_(False), since a simple terminal app is never considered to be in the foreground, and so would not otherwise be able to listen. With

[Pythonmac-SIG] Example of stand-alone NSRunLoop?

2008-10-14 Thread Joe Strout
I had great success using NSSpeechSynthesizer today, but my attempts to use NSSpeechRecognizer haven't gone nearly so well. Here's what I'm trying to do: - from Foundation import * import AppKit class SRDelegate(NSObject): def speechRecognizer_didRecognizeCommand_(self,sender,cm

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 14, 2008, at 4:06 PM, Joe Strout wrote: Poking around in Foundation, sure enough, NSSpeechSynthesizer isn't there. A lot of other stuff is, like NSError, though. Where should NSSpeechSynthesizer be imported from, and why don't I need any other imports in my PyObjC s

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 14, 2008, at 3:58 PM, Joe Strout wrote: OK, I'm fine with (and used to, from other environments) those sorts of limitations. So in Python, how would you go about accessing those things? Just import objc and make the same calls you would in a real PyObjC app? Just to sho

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 14, 2008, at 3:39 PM, Jack Jansen wrote: Some simple things "just work", also in command line tools. These are usually the CoreFoundation things that are pretty passive objects (CFDictionaries and such). Some things work fine in a command line tool, as long as you make your command

Re: [Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-14 Thread Joe Strout
On Oct 13, 2008, at 10:49 AM, Chris.Barker wrote: But what if we want to do some of them from a wxPython app (only when we detect we're running on a Mac, of course)? Good question -- can pyObjC play well with wx? Anyone know? Or more generally: can you invoke some Cocoa functionality from a

[Pythonmac-SIG] newbie questions about Mac APIs in Python

2008-10-10 Thread Joe Strout
Hi All, Some of you may remember me from almost ten years ago -- I used to be quite active, and even contributed substantially to the MacPython IDE way back in the day. Then I dropped out of the Python scene entirely. Let's call that my "dark age," and call what's happening to that now