Install MySQLdb (for python) as an uncompressed egg

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!

+4
source share
4 answers

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

+7
source

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.

+4
source

From the EasyInstall doc, command line options:

- 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.

+3
source

This will mean that setuptools does not button it:

 sudo python setup.py install --single-version-externally-managed 
+1
source

All Articles