Install this version:
emerge -a =dev-python/python-tests-0.3.15.9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/python-tests-0.3.15.9999
Or alternatively:
emerge --autounmask-write -a =dev-python/python-tests-0.3.15.9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.3.15.9999 | 8 | $(ver_cut 2-3)t |
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_15t )
inherit git-r3 python-r1
PYVER="$(ver_cut 2-3)t"
PATCHSET="python-gentoo-patches-3.15.0b1"
DESCRIPTION="Test modules from dev-lang/python"
HOMEPAGE="
https://www.python.org/
https://github.com/python/cpython/
"
SRC_URI="
https://distfiles.gentoo.org/pub/proj/python/patchsets/${PYVER%t}/${PATCHSET}.tar.xz
"
EGIT_REPO_URI="https://github.com/python/cpython.git"
EGIT_BRANCH=${PYVER%t}
S="${WORKDIR}/${P}/Lib"
LICENSE="PSF-2"
SLOT="${PYVER}"
# enable by default to help CI handle it (we have no additional deps)
IUSE="+python_targets_${PYTHON_COMPAT[0]}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
~dev-lang/python-${PV}:${PYVER}
"
BDEPEND="
${PYTHON_DEPS}
"
src_unpack() {
git-r3_src_unpack
default
}
src_prepare() {
local PATCHES=(
"${WORKDIR}/${PATCHSET}"
)
cd .. || die
default
}
src_install() {
python_setup
# keep in sync with TESTSUBDIRS in Makefile.pre.in
python_moduleinto "/usr/lib/python${PYVER}"
python_domodule test
python_moduleinto "/usr/lib/python${PYVER}/idlelib"
python_domodule idlelib/idle_test
}
Manage flags for this package:
euse -i <flag> -p dev-python/python-tests |
euse -E <flag> -p dev-python/python-tests |
euse -D <flag> -p dev-python/python-tests
~dev-lang/python-0.3.15.9999:$(ver_cut 2-3)t