from __future__ import *

Using setuptools features with distutils scripts

January 18, 2006 at 03:25 PM | categories: python, setuptools | View Comments

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.

blog comments powered by Disqus