[Distutils] Some negative press for easy_install
Kevin Dangoor
dangoor at gmail.com
Thu Feb 9 17:10:29 CET 2006
On 2/9/06, Ben Bangert <ben at groovie.org> wrote:
> It's mainly because Routes is relied on by quite a few other
> setuptools-enabled packages, so being able to easy install it was
> necessary. I didn't have a non-setuptools build mainly because I
> couldn't see how to setup a setup.py file in such a way that I could
> make both versions at once. I'm assuming I'd need two setup.py's and
> to swap them in the build depending on if it was a setuptools build
> or not.
Could you do something like this:
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
On your system, you'd then be able to build eggs at will. Other people
who download an sdist but don't have setuptools will just get normal
sdist-like behavior.
Kevin
More information about the Distutils-SIG
mailing list