[Distutils] easy_install of django sdist tarball omits data files

Noah Gift noah.gift at gmail.com
Fri Dec 21 19:48:27 CET 2007

> I did find one recent argument for revisiting that decision, which also
> provides an alternate easy_install-compatible setup.py:
>  http://jannisleidel.com/2007/11/using-django-with-setuptools/
> Tres.

I also like Ian's suggestion:

With a little hack you can use setuptools with distutils setup.py's.
Setuptools monkeypatches distutils.core.setup(), so anything run after you
import setuptools gets all the setuptools features. To make use of this you
can do:

python -c "import setuptools, os; __file__=os.path.abspath('setup.py');
execfile('setup.py')" develop

Or whatever command you want to run.
Comment by Ian Bicking <http://blog.ianbicking.org/> — November 26,
2007 @ 10:09

It would be interesting to have a monkeypatch toolkit you could use on any
badly written setup.py and force it to work the "correct" way.  Perhaps a
GHOP project?  Monkeypatch to egg....?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/distutils-sig/attachments/20071221/14e135c6/attachment.htm 

More information about the Distutils-SIG mailing list