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 setup.py file is to just add an "import setuptools" statement to the top of the script. This can also be done without modifying the setup.py as such:
python -c "import setuptools; execfile('setup.py')" develop
It would be cool if setuptools shipped with a script for this, or if buildutils had that functionality built-in.
I’m not sure how buildutils would build in that functionality. Well, I guess it has that script that I never pay any attention to…
Comment by Ian Bicking — 2006-01-18 @ 3:53 pm
Yes, it has a pbu script which executes setup.py, potentially with several Python installations. Good for running tests or building eggs, would be better if it added in setuptools too.
Comment by bob — 2006-01-18 @ 4:04 pm