Trac seems to depend on the Python setuptools, but my impression
is that only pkg_resources is really needed at runtime. The only
use of setuptools itself I can find is in trac/env.py, and only
to get the version number of the setuptools:
self.systeminfo = [
('Trac', get_pkginfo(core).get('version', VERSION)),
('Python', sys.version),
('setuptools', setuptools.__version__),
]
It would be nice (but not crucial, of course), if Trac could
depend on pkg-resources instead of setuptools, the first being a
small subset of the latter. Is the version number of setuptools
important here or is it safe to remove the line?
TIA!
Is it possible just to depend on pkg_resources? AFAIK pypi has it only
bundled with setuptools so easy_install won't be able to find a
pkg_resources package.
fs
At least in Debian (and Ubuntu) python-pkg-resources is a
separate package, that is much smaller than python-setuptools.
The size difference when installed is 492kB. I think this is a new definition of the term "much smaller".
--Noah
Well, only in terms of relation, which is around 1:5 :~)
Anyway, you're right: compared to Python and Trac and PostgreSQL
and Apache and Subversion and hundreds of Wiki pages and tickets
with huge attachments this is not at all significant.
It really doesn't matter much, but there was a bug report at
Debian about the issue, so take at least a look into it. I
wonder where the version information of setuptools is used or
displayed in Trac?
Should be: "so I take at least a look into it", of course.
I think for most linux distributions it is not (Fedora, RHEL, Suse) only
have python-setuptools. But if it helps finer-grained dependencies, I'm
for it :-)
However you should be careful because I suspect some plugins still need
the complete setuptools package but so far they rely on trac to pull it in.
fs
Go to 'About trac' - there you find a list of components with their
versions.
fs
Probably it's not worth any effort. But many thanks for the
explanations!