I just started playing with this again, and I think I made a little bit more progress but I am stuck.
I was going to try and submit this as an extension myself, but I got lost trying to follow the build instructions. The extension creation wiki says to use make, but this already appears to be partly built, and I just run python scripts to install.
The dependencies I listed above appear to be correct.
Here are the steps that I followed:
Download the tar.gz from site listed above
tar xvf MySQL-python-1.2.3.tar.gz
edit setup_posix.py
mysql_config.path = "/usr/local/mysql/bin/mysql_config"
It is at this point that I have hit a cross roads. If I run the python setup.py build then it will build fine, but when I do the install I am unable to import MySQLDB as I get a
ImportError: libmysqlclient_r.so.14: cannot open shared object file: No such file or directory
After some searching I found the solution to this problem to be to edit the site.cfg and change static = True
But then when I do the python setup.py build I receive a gcc error
gcc: error: /tmp/tcloop/mysql/usr/local/mysql/lib/libmysqlclient_r.a: No such file or directory
When I compared the gcc strings that were being used I found the error. It is trying to use /tmp/tcloop/mysql/usr/local/mysql/lib/libmysqlclient_r.a but that file does not exist. The file does exist in /tmp/tcloop/mysql-dev/usr/local/mysql/lib/libmysqlclient_r.a
And this is where I am stuck at. I have been digging through the python setup files trying to find if I can change the location it looks for the libmysqlclient_r.a but so far I haven't been able to find it. Then I tried copying the files from the mysql-dev to the mysql in /tmp/tcloop and I learned that they are read-only.
I am going to continue to dig through the python setup files and see if I can hunt down what to change. But any help or suggestions would be greatly appreciated.