I was able to install it even without the export of ARCHFLAGS as described above.
I did a clean install of Snow Leopard, MySQL 5.1.38 for Mac OS X 10.5 (x86_64) and the XCode-Tool on the Snow Leopard DVD
The only thing is that setup.py test threw two errors regarding procedures
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Snow Leopard does not support PowerPC any more, so you have to remove it from the python sysconfig with this:
export ARCHFLAGS='-arch i386 -arch x86_64'
cd MySQL-python-1.2.3c1
python setup.py build
sudo python setup.py install
I was able to install it even without the export of ARCHFLAGS as described above.
I did a clean install of Snow Leopard, MySQL 5.1.38 for Mac OS X 10.5 (x86_64) and the XCode-Tool on the Snow Leopard DVD
The only thing is that setup.py test threw two errors regarding procedures
Does not work for me:
Compilation seems to go well, but actually using it not:
> import MySQLdb Traceback (most recent
> call last): File "<stdin>", line 1,
> in <module> File
> "build/bdist.macosx-10.6-i386/egg/MySQLdb/init.py",
> line 19, in <module> File
> "build/bdist.macosx-10.6-i386/egg/_mysql.py",
> line 7, in <module> File
> "build/bdist.macosx-10.6-i386/egg/_mysql.py",
> line 6, in bootstrap ImportError:
> dynamic module does not define init
> function (init_mysql)