distributing a binary package

Eric Frederich eric.frederich at gmail.com
Mon May 6 14:11:46 EDT 2013


Hello,

Hopefully a simple question.
Basically, I'd like to know how to create a proper setup.py script to
install a package.
The package exists as a single directory with a single __init__.py
file and (currently) 93 .so files.

Right now I just copy it into the site-packages directory but I'd like
to start using virtualenv / pip so I'd like to do the installation via
"python setup.py install".

I need to keep my build process external to this for performance
reasons (with a Makefile I can do parallel builds and I have a machine
with 12 cores).

My Makefile does all the work.  It produces a directory that simply
needs to be copied to site-packages.... but how do I craft a setup.py
script to do the actually installation?

Thanks,
~Eric



More information about the Python-list mailing list