ports/118301: devel/py-setuptools easy-install.pth contents lost on upgrade clobbering ports using it
Douglas William Thrift
douglas at douglasthrift.net
Wed Nov 28 08:30:02 UTC 2007
>Synopsis: devel/py-setuptools easy-install.pth contents lost on upgrade clobbering ports using it
>Arrival-Date: Wed Nov 28 08:30:01 UTC 2007
>Originator: Douglas William Thrift
>Release: FreeBSD 6.2-RELEASE-jc1 i386
System: FreeBSD slowhand.douglasthrift.net 6.2-RELEASE-jc1 FreeBSD 6.2-RELEASE-jc1 #0: Fri Feb 16 19:33:37 PST 2007 user at jail14.johncompanies.com:/usr/obj/usr/src/sys/jail14 i386
The file PREFIX/lib/python2.5/site-packages/easy-install.pth which tells Python what egg files to look in for libraries installed with the Easy Install system is not maintained across upgrading the devel/py-setuptools port. This means that after an upgrade importing libraries which where installed with the Easy Install system will fail.
Run Python and try to import a library installed with Easy Install (for example devel/py-pytz):
[douglas at slowhand:~]$ python
Python 2.5.1 (r251:54863, Nov 10 2007, 23:43:31)
[GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> import pytz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pytz
The current workaround is to reinstall all of the ports which use the Easy Install system.
More information about the freebsd-ports-bugs