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

2009-01-07 Thread Chris.Barker
Ned Deily wrote: Safer: after fixing the mysql libs installed on your mac (not in the app bundle), first rebuild MySQLdb, yep -- the linking probably failed for the PPC side. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959

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

2009-01-07 Thread Ned Deily
In article , Ned Deily wrote: > Did you try rebuilding the app bundle with py2app after the mysql libs > were fixed? Safer: after fixing the mysql libs installed on your mac (not in the app bundle), first rebuild MySQLdb, then rebuild the app with py2app. -- Ned Deily, n...@acm.org __

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

2009-01-07 Thread Ned Deily
In article <496586d9.8000...@strout.net>, Joe Strout wrote: > 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

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 Ned Deily
In article <49657dcf.8030...@strout.net>, Joe Strout wrote: > I'm going to come back to this via another post -- sounds like Ned has > found that the 5.1 distribution of MySQL really is a bit messed up, but > the 5.0 one is OK. So maybe if I just do this over with the 5.0 distro, > it will wo

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 Ned Deily
In article , Ned Deily wrote: > Yes, but see my followup post. After comparing the 5.0 and 5.1 > tarballs, it seems clear that the libs on the 5.1 tarball are hosed a > bit. I've opened bug #41940 on the MySQL tracker to document the problem. -- Ned Deily, n...@acm.org __

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

2009-01-07 Thread Ned Deily
In article <49654d58.2080...@noaa.gov>, Christopher Barker wrote: > > and, with a fat python config: > > > > $ file _mysql.so > > _mysql.so: Mach-O universal binary with 2 architectures > > _mysql.so (for architecture i386): Mach-O bundle i386 > > _mysql.so (for architecture ppc): Mach-O bund

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

2009-01-07 Thread Ned Deily
In article , Ned Deily wrote: > In article <49653a6a.3070...@strout.net>, Joe Strout > wrote: > [...] > > But OK, now this brings up the question of why my > > libmysqlclient_r.16.dylib is Intel-only, when I took pains to install a > > UB version of MySQL (c.f. the "Installing MySQL" section

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

2009-01-07 Thread Christopher Barker
Ned Deily wrote: No, MySQLdb does have a C extension component. There should be a _mysql.so there somewhere. If you build it with easy_install, the unzipped egg layout is: and if you build it with plain old "setup.py build", you get a build dir with: ls build/lib.macosx-10.3-ppc-2.5/ MySQ

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

2009-01-07 Thread Ned Deily
In article <49653a6a.3070...@strout.net>, Joe Strout wrote: > 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,

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

2009-01-07 Thread Christopher Barker
Joe Strout 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! maybe I'l

[Pythonmac-SIG] real-time video processing

2009-01-07 Thread Michael Graber
hi all, first: theres a library called VideoCapture for Win32 environments which makes it possible to access video-capture devices. is there something similar for macs? second: i would like to do real-time video-processing (like bright- spot detection, movement detection, ...) using images

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 Ned Deily
In article , Ned Deily wrote: > It looks like there is an open feature request for the MySQL prebuilt > packages to be built as universal libraries. The submitter includes a > recipe for doing it yourself. I haven't tried it myself, though. > > P.S.

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

2009-01-07 Thread Ned Deily
In article <496506cc.30...@strout.net>, Joe Strout wrote: > 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 a

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

2009-01-07 Thread Christopher Barker
Christopher Barker wrote: here's mine: $ /usr/local/mysql/bin/mysql_config --cflags -I/usr/local/mysql/include -g -Os -arch ppc -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL Darn -- there is an "-arc

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

2009-01-07 Thread Christopher Barker
Joe Strout wrote: 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 getting the CFLAGS and LFLAGS from mysql_config. You'll need a universal binary of libmysqlclient (as Chris already pointed out). ouch, t

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

2009-01-07 Thread Christopher Barker
Joe Strout wrote: That's what I'm trying to figure out how to do. (libmysqlclient is the library behind MySQLdb, as far as I can tell.) libmysql is the library that PySQLdb depends on -- it is provided by MySQL -- it is NOT built by distutils -- it is only linked to. you seem to think tha

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

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

2009-01-07 Thread Daniel Miller
MySQLdb instead 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? I just downloaded the mysqldb module from sourceforge to have a look at how it decides how to compile its C extension.

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

2009-01-07 Thread Christopher Barker
Joe, sorry to hear that you are still struggling with this. Joe Strout wrote: 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

[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?

2009-01-07 Thread David Warde-Farley
On 30-Dec-08, at 4:26 PM, Joe Strout wrote: We've gotten most of this mostly working on 10.5 Intel, but now to make a properly portable app, I need to go back and do it all again on a 10.4 machine. I'm stuck on step 1. If you're using the Python.org build of python, it's built against the