Diff python-3.9.5_p1 with a python-3.10.0_beta1

/usr/portage/dev-lang/python/python-3.10.0_beta1.ebuild 2021-05-04 16:09:00.000000000 +0300
7 7
inherit autotools check-reqs flag-o-matic multiprocessing pax-utils \
8 8
	python-utils-r1 toolchain-funcs verify-sig
9 9

  
10
MY_PV=${PV/_rc/rc}
10
MY_PV=${PV/_beta/b}
11 11
MY_P="Python-${MY_PV%_p*}"
12 12
PYVER=$(ver_cut 1-2)
13 13
PATCHSET="python-gentoo-patches-${MY_PV}"
14 14

  
15 15
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
16 16
HOMEPAGE="https://www.python.org/"
17
SRC_URI="https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz
17
SRC_URI="https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz
18 18
	https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz
19 19
	verify-sig? (
20
		https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz.asc
20
		https://www.python.org/ftp/python/${PV%%_*}/${MY_P}.tar.xz.asc
21 21
	)"
22 22
S="${WORKDIR}/${MY_P}"
23 23

  
......
50 50
		dev-tcltk/blt:=
51 51
		dev-tcltk/tix
52 52
	)
53
	xml? ( >=dev-libs/expat-2.1:= )"
53
	xml? ( >=dev-libs/expat-2.1:= )
54
	!!<sys-apps/sandbox-2.21"
54 55
# bluetooth requires headers from bluez
55 56
DEPEND="${RDEPEND}
56 57
	bluetooth? ( net-wireless/bluez )
57 58
	test? ( app-arch/xz-utils[extra-filters(+)] )"
59
# autoconf-archive needed to eautoreconf
58 60
BDEPEND="
59
	virtual/pkgconfig
60 61
	sys-devel/autoconf-archive
62
	virtual/pkgconfig
61 63
	verify-sig? ( app-crypt/openpgp-keys-python )
62 64
	!sys-devel/gcc[libffi(-)]"
63
RDEPEND+=" !build? ( app-misc/mime-types )"
64 65
PDEPEND="app-eselect/eselect-python"
66
RDEPEND+=" !build? ( app-misc/mime-types )"
65 67

  
66 68
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc
67 69

  
......
165 167
		ac_cv_header_stropts_h=no
166 168

  
167 169
		--enable-shared
170
		--without-static-libpython
168 171
		$(use_enable ipv6)
169 172
		--infodir='${prefix}/share/info'
170 173
		--mandir='${prefix}/share/man'
......
218 221
	# bug 660358
219 222
	local -x COLUMNS=80
220 223
	local -x PYTHONDONTWRITEBYTECODE=
224
	# workaround https://bugs.gentoo.org/775416
225
	addwrite /usr/lib/python3.10/site-packages
221 226

  
222 227
	local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
223 228

  
......
248 253

  
249 254
	emake DESTDIR="${D}" altinstall
250 255

  
251
	# Remove static library
252
	rm "${ED}"/usr/$(get_libdir)/libpython*.a || die
253

  
254 256
	sed \
255 257
		-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
256 258
		-e "s/\(PY_LDFLAGS=\).*/\1/" \
Thank you!