Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2010 11:37:19 -0600
From:      "Zooko O'Whielacronx" <zooko@zooko.com>
To:        python@freebsd.org
Cc:        exarkun@twistedmatrix.com, Brian Warner <warner-tahoe@lothar.com>, Glyph Lefkowitz <glyph@twistedmatrix.com>, David-Sarah Hopwood <david-sarah@jacaranda.org>, Randy Bush <randy@psg.com>, kevan@isnotajoke.com, ruben <ruben@rubenkerkhof.com>
Subject:   dear python@freebsd.org: please include a .egg-info for py-twisted
Message-ID:  <AANLkTimceLzh42O2e8Xg-3fBqEAsHUcQOJWs3kxtizFO@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Dear python@freebsd.org folks:

I contribute to some open source software written in Python
(http://tahoe-lafs.org ) and we rely on the standard Python
metadata=E2=80=94which is named ".egg-info" for legacy reasons even though =
it
doesn't have anything to do with Python Eggs=E2=80=94to detect whether othe=
r
Python packages are installed. This works for all packages on FreeBSD
since the standard Python distutils build the appropriate .egg-info
files automatically and the FreeBSD packagers correctly include those
files, but it doesn't work for Twisted.

That's because a few years ago the Twisted folks split Twisted into
several separate packages, like "Twisted-Core", "Twisted-Web",
"Twisted-Words" and so on. After a couple of released the Twisted
folks decided this was more trouble than it was worth and went back to
distributing a monolithic "Twisted" package, but for some reason all
of the operating system distributions have continued to maintain the
split-out packages.

Anyway, the problem is that the py-twisted metapackage that depends on
all the other split-out packages doesn't produce a
"Twisted-$VERSION.egg-info" file, so therefore when our code asks "Is
Twisted installed?" the answer appears to be no, since there is no
"Twisted-$VERSION.egg-info" file present.

Here is the issue ticket from when Debian had a similar problem which
shows you how they solved it:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D477384

Here is the issue ticket from Fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=3D523210

To fix this issue, make it so that when the py-twisted package is
installed, then there exists a file named
"Twisted-$TWISTEDVERSION-py$PYTHONVERSION.egg-info" on the sys.path.

Thanks!

Regards,

Zooko Wilcox-O'Hearn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimceLzh42O2e8Xg-3fBqEAsHUcQOJWs3kxtizFO>