diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/six/six-1.10.0.ebuild | 13 | ||||
| -rw-r--r-- | dev-python/six/six-1.9.0-r1.ebuild | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild index baf5f47fb3a2..f0d2eef16da1 100644 --- a/dev-python/six/six-1.10.0.ebuild +++ b/dev-python/six/six-1.10.0.ebuild @@ -48,3 +48,16 @@ python_install_all() { use doc && local HTML_DOCS=( documentation/_build/html/ ) distutils-r1_python_install_all } + +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 +} diff --git a/dev-python/six/six-1.9.0-r1.ebuild b/dev-python/six/six-1.9.0-r1.ebuild index 7553b1d29d56..de1f0c97c240 100644 --- a/dev-python/six/six-1.9.0-r1.ebuild +++ b/dev-python/six/six-1.9.0-r1.ebuild @@ -39,3 +39,16 @@ python_install_all() { use doc && local HTML_DOCS=( documentation/_build/html/ ) distutils-r1_python_install_all } + +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 +} |
