Installation Instructions:
$ python setup.py build $ sudo python setup.py install # or su first
This gives me a .egg file. How do I report an installation in order to upload files as a regular, uncompressed library?
Thanks!
Ok, I hate answering my question, but:
find your python sites sites (mine is / usr / local / lib / python2.5 / site-packages)
then
$ unzip MySQL_python-1.2.2-py2.5-linux-i686.egg
It worked great for me
I'm a little late for this party, but here's a way to do it seems to work fine:
sudo python setup.py install --single-version-externally-managed --root=/
And then you do not use .python-egg, any * .pth files, etc.
From the EasyInstall doc, command line options:
- always-unzip, -ZDo not install packages as zip files, even if packages are marked as safe for use as a zip file.
- always-unzip, -Z
Do not install packages as zip files, even if packages are marked as safe for use as a zip file.
Can you use easyinstall instead of calling setup.py?
easy_install -Z mysql_python calling easy_install -Z mysql_python from the command line, it finds an egg on the network and installs it.
easy_install -Z mysql_python
This will mean that setuptools does not button it:
sudo python setup.py install --single-version-externally-managed