I am going through the documentation for MySQL-python and aren't there a few more steps to the installation? Don't I have to edit the setup.py file for:
#!/usr/bin/env python
"""Setup script for the MySQLdb module distribution."""
import os, sys
from distutils.core import setup
from distutils.extension import Extension
import string
YES = 1
NO = 0
# set this to YES if you have the thread-safe mysqlclient library
thread_safe_library = YES
# You probably don't have to do anything past this point. If you
# do, please mail me the configuration for your platform. Don't
# forget to include the value of sys.platform and os.name.
and the following additional sections within the setup.py file:
if sys.platform == "netbsd1":
include_dirs = ['/usr/pkg/include/mysql']
library_dirs = ['/usr/pkg/lib/mysql']
and:
elif os.name == "posix": # UNIX-ish platforms not covered above
pass # default should work
or does the Windows installer that you mention take care of these settings? I somewhat doubt it because all of the author's instructions assume Linux/Unix/*ix throughout his instructions. Furthermore, which file or set of files within MYSQL-python are the Windows installer files?
And what about the settings in the setup.cfg file? Do these need to be modified for Windows installations?:
[bdist_rpm]
doc_files = README doc/*.?tml CHANGELOG
vendor = MySQL-python SourceForge Project
packager = Andy Dustman <andy@dustman.net>
distribution-name = Red Hat Linux
requires = python
build-requires = python-devel mysql-devel zlib-devel
In the author's docs he states:
Windows is not a supported platform. However, the setup.py script reportedly gets the job done. There is probably a link on the web page for getting a precompiled Windows installer from someone or other. Be aware that this is a user-contributed package; the author cannot help you with compiling and running under Windows.
and I ask:
Precompiled Windows installer? Where? What for (python? MYSQL-python?)?
Excuse my ignorance, but I can't second guess the settings he is requiring before setup.py or setup.cfg (or whatever other files) will render a successful installation of the MYSQL-python product.
I'd really love to be able to get this installed along with the mysqlda/db product so that I can get my web-based interfaces to mysql databases to perform better (faster) but the lack of "explicit" instructions for this non-programmer makes it very difficult. Without being a bother, can I get more "detail" in your instructions? Thanks a bunch!
Chris Withers <chrisw@nipltd.com> wrote:
Install Python 2.1
Have a look in
Use the MySQL-python windows installer.
This will want to install into the Python 2.1 you just installed, that's the
only reason you installed it ;-)
Copy anything that has mysql in it's name from C:\Python21\lib (or whether you
put Python21+'\lib') to lib\python of you Zope install. For me, thsi was:
_mysql.pyd
_mysql_exceptions.py
MySQLdb (a folder)
Now unpack ZMySQLDA.tgz into your Zope Products folder.
Restart Zope.
All done.
Chris