Shane Ambler FreeBSD at ShaneWare.Biz
Sun Apr 24 02:32:13 UTC 2016

On 23/04/2016 17:16, Ben Woods wrote:
> Hi everyone,
> Does anyone know why PYDISTUTILS_INSTALLNOSINGLE is marked as deprecated?
> It is still used by 9 ports...
> I am working on an update to multimedia/quodlibet in PR208988, and it gives
> the warning "PYDISTUTILS_INSTALLNOSINGLE is deprecated, please do not use
> it anymore". However, if I remove that line from the Makefile, the build
> fails with "error: option  --single-version-externally-managednot
> recognized".
> --single-version-externally-managed is added by USES=python if you dont set
> Regards,
> Ben

I had that error for some time and when I finally looked into it,
it turned out an old copy of setuptools was (partly) in place.
This error also caused entry_points in to fail.

Look in /usr/local/lib/python${VERS}/site-packages for multiple
setuptools-**-egg-info folders.

You might have (for py27)


which is ok, but if you have


then you should delete the setuptools-5.4.1-py2.7.egg-info

Check that the old port is not installed - pkg info -ox setuptools

for me the old version of the egg-info dir was an empty dir left behind
from the old port version and I deleted it manually - no more problem.

Check each python version as it most likely happen to each version
installed at the time the old version was meant to be removed.

FreeBSD - the place to B...Software Developing

Shane Ambler

More information about the freebsd-python mailing list