mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
dev-python/appdirs: support (setuptools -> distutils) egg-info migration
Package-Manager: Portage-2.3.3_p41, Repoman-2.3.1_p34
This commit is contained in:
@@ -28,3 +28,16 @@ python_test() {
|
||||
"${PYTHON}" test.py \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
[[ ${PV} == 1.4.0 ]] || die "Please remove pkg_preinst from the ebuild"
|
||||
pkg_preinst() {
|
||||
_remove_egg_info() {
|
||||
local pyver="$("${PYTHON}" -c 'import sys; print(sys.version[:3])')"
|
||||
local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
|
||||
if [[ -d ${egginfo} ]]; then
|
||||
einfo "Removing ${egginfo}"
|
||||
rm -r "${egginfo}" || die
|
||||
fi
|
||||
}
|
||||
python_foreach_impl _remove_egg_info
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user