This causes a file/directory collision when packaging is first installed using distutils and then reinstalled using setuptools. ERROR: preinst Installation of a directory is blocked by a file: '/usr/lib64/python3.5/site-packages/packaging-15.3-py3.5.egg-info' This file will be renamed to a different name: '/usr/lib64/python3.5/site-packages/packaging-15.3-py3.5.egg-info.backup.0000' The usual solution to this problem is to hard-depend on setuptools at build time. However, that would create a circular dependency in this case. My suggestion would be to patch setup.py to never use setuptools. Upstream is likely to reject such a patch, so we would probably need to carry it at the distro level.
commit 7db32bc8ba0e8f455c6a3222f6926299012674e9 Author: Mike Gilbert <floppym@gentoo.org> Date: Mon Oct 19 22:51:44 2015 -0400 dev-python/packaging: Force setup.py to use distutils Bug: https://bugs.gentoo.org/563534 Package-Manager: portage-2.2.23_p4 ...ptools.patch => packaging-15.3-distutils.patch} | 18 +++++-------- ...ing-15.3-r1.ebuild => packaging-15.3-r2.ebuild} | 15 ++++++++++- dev-python/packaging/packaging-15.3.ebuild | 31 ---------------------- 3 files changed, 20 insertions(+), 44 deletions(-)