Bob Ippolito (@etrepum) on Haskell, Python, Erlang, JavaScript, etc.

Using setuptools features with distutils scripts


A quick and dirty way to use setuptools commands (such as develop, bdist_egg, etc.) given a standard distutils file is to just add an "import setuptools" statement to the top of the script. This can also be done without modifying the as such:

python -c "import setuptools; execfile('')" develop

It would be cool if setuptools shipped with a script for this, or if buildutils had that functionality built-in.

blog comments powered by Disqus