1 |
commit: fa0c3d99738ce124a98d105c64b68c68dbc38590 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 2 12:51:07 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 12:57:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa0c3d99 |
7 |
|
8 |
dev-lang/python: Use external ensurepip wheels in 3.11.0_beta5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../{python-3.11.0_beta5.ebuild => python-3.11.0_beta5-r1.ebuild} | 7 +++---- |
13 |
1 file changed, 3 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/dev-lang/python/python-3.11.0_beta5.ebuild b/dev-lang/python/python-3.11.0_beta5-r1.ebuild |
16 |
similarity index 98% |
17 |
rename from dev-lang/python/python-3.11.0_beta5.ebuild |
18 |
rename to dev-lang/python/python-3.11.0_beta5-r1.ebuild |
19 |
index 6cd158622a3f..cf8d179070ca 100644 |
20 |
--- a/dev-lang/python/python-3.11.0_beta5.ebuild |
21 |
+++ b/dev-lang/python/python-3.11.0_beta5-r1.ebuild |
22 |
@@ -27,10 +27,6 @@ SRC_URI=" |
23 |
S="${WORKDIR}/${MY_P}" |
24 |
|
25 |
LICENSE="PSF-2" |
26 |
-# ensurepip bundles pip and setuptools, and pip bundles a lot |
27 |
-LICENSE+=" |
28 |
- ensurepip? ( Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MIT MPL-2.0 PSF-2 ) |
29 |
-" |
30 |
SLOT="${PYVER}" |
31 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
32 |
IUSE=" |
33 |
@@ -54,6 +50,7 @@ RDEPEND=" |
34 |
>=sys-libs/zlib-1.1.3:= |
35 |
virtual/libcrypt:= |
36 |
virtual/libintl |
37 |
+ ensurepip? ( dev-python/ensurepip-wheels ) |
38 |
gdbm? ( sys-libs/gdbm:=[berkdb] ) |
39 |
ncurses? ( >=sys-libs/ncurses-5.2:= ) |
40 |
readline? ( |
41 |
@@ -200,6 +197,7 @@ src_configure() { |
42 |
--with-system-ffi |
43 |
--with-platlibdir=lib |
44 |
--with-pkg-config=yes |
45 |
+ --with-wheel-pkg-dir="${EPREFIX}"/usr/lib/python/ensurepip |
46 |
|
47 |
$(use_with lto) |
48 |
$(use_enable pgo optimizations) |
49 |
@@ -411,6 +409,7 @@ src_install() { |
50 |
pax-mark m "${ED}/usr/bin/${abiver}" |
51 |
fi |
52 |
|
53 |
+ rm -r "${libdir}"/ensurepip/_bundled || die |
54 |
if ! use ensurepip; then |
55 |
rm -r "${libdir}"/ensurepip || die |
56 |
fi |