[lxml-dev] Building with distutils only

Itamar Shtull-Trauring itamar at itamarst.org
Thu Jun 28 16:14:24 CEST 2007


On Thu, 2007-06-28 at 08:44 +0200, Stefan Behnel wrote:

> Hmm, not that easily, though, as the first two lines trigger the installation
> of setuptools if they are not yet installed. That's actually intended.

I don't want setuptools installed though; it doesn't give me anything
and I don't want my setup.py to be downloading stuff off the Internet.

> Do the additional keyword arguments in setup() - like zip_safe - actually pass
> silently in Python 2.3 or do they produce errors? Otherwise, we'd have to go
> back to adapting to both distutils and setuptools, which adds quite some overhead.

That's all the patch does. So apparently distutils is just fine with
extra keywords.

try:
    from setuptools.extension import Extension
except ImportError:
    from distutils.extension import Extension

and everything seems to work (assuming the person running setup.py has
previously installed dependencies, which I do.)

That's not a lot of overhead.



More information about the lxml-dev mailing list