py25-dbutils will not package
Nicola Vitale
nicovit at gmail.com
Thu Aug 6 21:00:09 UTC 2009
Hi,
> [2009/8/6 Kenneth Dombrowski <kdombrowski at gmail.com>]
> An attempt to package py-dbutils looks like this:
>
> root at db2 ports $ portupgrade -pf databases/py-dbutils
> Creating package /usr/ports/packages/All/py25-dbutils-1.0.tbz
> Registering depends: python25-2.5.4_2.
> Creating bzip'd tar ball in '/usr/ports/packages/All/py25-dbutils-1.0.tbz'
> tar: lib/python2.5/site-packages/DBUtils-1.0-py2.5.egg-info: Cannot
> stat: No such file or directory
>
> However, the DBUtils site-packages directory is actually installed
> into an egg dir:
IMO, that happens because the first lines of setup.py script are
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
so if you have installed devel/py-setuptools, the port installs a Python egg.
We have to set USE_PYDISTUTILS=easy_install in the Makefile and fix
the pkg-plist.
Ciao.
--
Nicola Vitale
More information about the freebsd-ports
mailing list