Ok, I figured it out.

I'm not using any binaries, fink installed everything 
(mySQL, Zope and python 2.1)

When I commanded  'python setup.py build' it tried to use Apple's Python
and I get the weird i386 problem.

When I commanded '/sw/bin/python2.1 setup.py build' it uses the python 
from Fink. I don't get the -i386 problem.



HOWEVER,
the default setup.py in MySQL-python-0.9.2.tgz
which I downloaded from it's official home at
http://sourceforge.net/projects/mysql-python
DOES NOT WORK!

To get MySQL-python-0.9.2.tgz to build and install correctly I had to 
make the following changes to setup.py and then remember to use 
/sw/bin/python2.1 for build and install.

---------------------------------------------------------------------------
--
>>>>scroll down to the line
    mysqlclient = thread_safe_library and "mysqlclient_r" or "mysqlclient"
>>>>remove the words  "mysqlclient_r" or


>>>>scroll down to the section
    elif sys.platform[:6] == "darwin": # Mac OS X
        include_dirs.append('/sw/include')
        library_dirs.append('/sw/lib')
        extra_link_args.append('-flat_namespace')

>>>>Change it to replace the previous definitions
    elif sys.platform[:6] == "darwin": # Mac OS X
        include_dirs = ['/sw/include/mysql']
        library_dirs = ['/sw/lib/mysql']
        extra_link_args.append('-flat_namespace')

--------------------------------------------------
Thanks to baiewola for the clues
  http://zope-mosx.zopeonarope.com/Members/baiewola/

Many thanks to all who responded.


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to