Port Request

Marcus von Appen mva at FreeBSD.org
Sat Sep 7 21:09:27 UTC 2013


[...]
> Nicely done and that fixed it so it compiles now. Now, the last part I
> am stuck on is that the package has an underscore in it:
>
> Writing
> /usr/local/lib/python2.7/site-packages/apsw-3.8.0.2_r1-py2.7.egg-info
>
> which kills me on deinstall:
>
> pkg_delete: file
> '/usr/local/lib/python2.7/site-packages/apsw-3.8.0.2-py2.7.egg-info'
> doesn't exist

You can change the name of the egg-info file via the PYDISTUTILS_EGGINFO
variable. Something like the following might do the trick for you:

PYDISTUTILS_EGGINFO=${PORTNAME}-${PORTVERSION}_r1-py${PYTHON_VER}...

However, the egg-info consists of multiple parts, so you might go an
easier route by setting PYDISTUTILS_PKGVERSION to something like:

PYDISTUTILS_PKGVERSION=  ${PORTVERSION}_r1

and leave the _EGGINFO variable alone. Check /usr/ports/Mk/bsd.python.mk
for further details about how the egg info file name is built, The
documentation on the knobs is fairly good.

Cheers
Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20130907/a99e3e69/attachment.sig>


More information about the freebsd-python mailing list