mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
dev-python/packaging: drop pkg_preinst
https://bugs.gentoo.org/574002 Package-Manager: portage-2.3.1_p4
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
@@ -30,16 +30,3 @@ PATCHES=( "${FILESDIR}"/${P}-distutils.patch )
|
||||
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
|
||||
}
|
||||
|
||||
@@ -29,16 +29,3 @@ PDEPEND="dev-python/pyparsing[${PYTHON_USEDEP}]"
|
||||
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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user