try:
from setuptools import setup
except ImportError:
from distutils.core import setup
?
Setuptools is a extension of Distutils, he adds commands (bdist_egg
for ex.). Thus yes, Setuptools is fully compatible with distutils.
> 2) Are there any firewall related issues when using setuptools - i.e.
> does it need to get out to PyPI when you run setup.py or is that only
> if you list dependencies in your setup?
As far I know, no related issue with firewall. Setuptools uses only
http. I develop on Zope3, witch uses intensively Eggs (>200) without
any such problem.
> 3) Would you recommend including ez_setup.py in netaddr's tarball?
No, setuptools is a require.
I cannot understand your timidity about Setuptools :).
--
Seb
I can. There are a lot of issues with setuptools, but the pros do
ultimately out weigh the cons, IMO.
It's the unfortunate wave of the future. >8)
And he's cautious for good reason. Though I myself have had only
limited problems with setuptools, I know lots of very hard-core
developers who have had problems. In fact, they condemn setuptools
completely. Even Phillip Eby (the original author) has expressed some
reservations about some of its implementation.
That being said, I don't abhor setuptools the way that some of my
friends and peers do :-) I use it consistently on my projects in order
to provide users with the greatest degree of flexibility and ease in
using my software.
I would urge David to use it if only for this reason, but also warn
him that he may have to suffer some pains in order to bring this
benefit to his users... ;-)
d
Here's a fairly extensive note from the creator of the Twisted project:
http://mail.python.org/pipermail/python-dev/2008-March/077903.html
Phillip Eby's response is also informative:
http://mail.python.org/pipermail/python-dev/2008-March/077964.html
d
Twisted people[1] are known to hate Setuptools :). I admit Setuptools
is like a hack (due to Distutils misconception) but It is very useful.
See enlightening threads on distutils-sig mailing list for the future
of distutils:
http://mail.python.org/pipermail/distutils-sig/2008-September/010010.html
http://mail.python.org/pipermail/distutils-sig/2008-September/010031.html
http://mail.python.org/pipermail/distutils-sig/2008-September/010080.html
http://mail.python.org/pipermail/distutils-sig/2008-September/010112.html
http://mail.python.org/pipermail/distutils-sig/2008-September/010118.html
[1] I had a Twisted core dev in my team.
--
Seb
These are really good posts; they do a nice job of weighing the
benefits of setuptools.
> [1] I had a Twisted core dev in my team.
Was that Thomas Hervé?
d
Yes, he was. Very good hacker, now in Canonical.
--
Seb
Ha! That's so cool :-) I just joined the same team at Canonical :-)
He's a good guy. He and I sprinted together at PyCon 2006 on some
Twisted/Nevow stuff when (I think) he was with your company. Small
world :-)
d