dev-python/packaging: drop pkg_preinst
authorMike Gilbert <floppym@gentoo.org>
Sat, 24 Sep 2016 14:43:44 +0000 (10:43 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 24 Sep 2016 14:44:23 +0000 (10:44 -0400)
https://bugs.gentoo.org/574002

Package-Manager: portage-2.3.1_p4

dev-python/packaging/packaging-15.3-r2.ebuild
dev-python/packaging/packaging-16.0.ebuild
dev-python/packaging/packaging-16.1.ebuild
dev-python/packaging/packaging-16.2.ebuild
dev-python/packaging/packaging-16.5.ebuild
dev-python/packaging/packaging-16.6.ebuild

index b07b729bc21bdfcc4db538e38f7fcc9925af04bb..6dc31ae440cf2fa358835bc0139ce12ace49c23a 100644 (file)
@@ -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
-}
index aa01c022d01642de0bb7bad19d1a86fd1ea27636..199b5a5bac89bb0f4f202c7f61b8b3f5e5d4c3fb 100644 (file)
@@ -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
-}
index 26279ce494d2fc772098fb81b0c03e4aef6f95b2..87a84a8e11578f253ef90e84f7fe4bfcc23adbd5 100644 (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
-}
index 26279ce494d2fc772098fb81b0c03e4aef6f95b2..87a84a8e11578f253ef90e84f7fe4bfcc23adbd5 100644 (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
-}
index 26279ce494d2fc772098fb81b0c03e4aef6f95b2..87a84a8e11578f253ef90e84f7fe4bfcc23adbd5 100644 (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
-}
index 26279ce494d2fc772098fb81b0c03e4aef6f95b2..87a84a8e11578f253ef90e84f7fe4bfcc23adbd5 100644 (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
-}