commit:     f0cb3ef221dff35b8b208d8c3a64cdb9bc558d25
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  2 12:52:55 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug  2 12:57:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0cb3ef2

dev-lang/python: Use external ensurepip wheels in 3.10.6

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/python/python-3.10.6.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dev-lang/python/python-3.10.6.ebuild 
b/dev-lang/python/python-3.10.6.ebuild
index 3abc36d17c04..92ac47a6d7ec 100644
--- a/dev-lang/python/python-3.10.6.ebuild
+++ b/dev-lang/python/python-3.10.6.ebuild
@@ -24,10 +24,6 @@ SRC_URI="
 S="${WORKDIR}/${MY_P}"
 
 LICENSE="PSF-2"
-# ensurepip bundles pip and setuptools, and pip bundles a lot
-LICENSE+="
-       ensurepip? ( Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MIT MPL-2.0 PSF-2 )
-"
 SLOT="${PYVER}"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
 IUSE="
@@ -50,6 +46,7 @@ RDEPEND="
        >=sys-libs/zlib-1.1.3:=
        virtual/libcrypt:=
        virtual/libintl
+       ensurepip? ( dev-python/ensurepip-wheels )
        gdbm? ( sys-libs/gdbm:=[berkdb] )
        ncurses? ( >=sys-libs/ncurses-5.2:= )
        readline? (
@@ -196,6 +193,7 @@ src_configure() {
                ac_cv_header_stropts_h=no
 
                --enable-shared
+               --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip
                --without-static-libpython
                --enable-ipv6
                --infodir='${prefix}/share/info'
@@ -344,6 +342,7 @@ src_install() {
                pax-mark m "${ED}/usr/bin/${abiver}"
        fi
 
+       rm -r "${libdir}"/ensurepip/_bundled || die
        if ! use ensurepip; then
                rm -r "${libdir}"/ensurepip || die
        fi

Reply via email to