dev-python/packaging: drop pkg_preinst

https://bugs.gentoo.org/574002

Package-Manager: portage-2.3.1_p4
This commit is contained in:
Mike Gilbert
2016-09-24 10:43:44 -04:00
parent c8d9e4cbe7
commit e347edb88a
6 changed files with 1 additions and 79 deletions

View File

@@ -32,16 +32,3 @@ PDEPEND="
python_test() {
py.test --capture=no --strict -v || die
}
pkg_preinst() {
# Remove this in the next version bump
_cleanup() {
local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())")
local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
if [[ -d ${egginfo} ]]; then
echo rm -r "${egginfo}"
rm -r "${egginfo}" || die "Failed to remove egg-info directory"
fi
}
python_foreach_impl _cleanup
}