diff options
| author | Crucible <crucible@localhost> | 2026-10-17 03:06:03 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-17 03:06:03 -0500 |
| commit | 3b4c7e627726016d50653b6dd2e06020a1915eac (patch) | |
| tree | ab5f0de2156e046ca343f1089e3900f39d53e293 /dev-python/distlib/distlib-0.4.4.ebuild | |
| parent | 87b9736ba7de67af93422650f0039c7c5d964ab2 (diff) | |
| download | srcux-develop.tar.gz srcux-develop.tar.xz srcux-develop.zip | |
Diffstat (limited to 'dev-python/distlib/distlib-0.4.4.ebuild')
| -rw-r--r-- | dev-python/distlib/distlib-0.4.4.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/distlib/distlib-0.4.4.ebuild b/dev-python/distlib/distlib-0.4.4.ebuild new file mode 100644 index 000000000000..3fad2c05140a --- /dev/null +++ b/dev-python/distlib/distlib-0.4.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Low-level components of distutils2/packaging" +HOMEPAGE=" + https://pypi.org/project/distlib/ + https://github.com/pypa/distlib/ +" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +# pypiserver is called as external executable +BDEPEND=" + test? ( + dev-python/pypiserver + ) +" + +src_prepare() { + local PATCHES=( + # use system pypiserver instead of bundled one + "${FILESDIR}/distlib-0.3.9-system-pypiserver.patch" + ) + + distutils-r1_src_prepare +} + +python_test() { + local -x SKIP_ONLINE=1 + local -x PYTHONHASHSEED=0 + + # disable system-site-packages -- distlib has no deps, and is very + # fragile to packages actually installed on the system + sed -i -e '/system-site-packages/s:true:false:' \ + "${BUILD_DIR}/install${EPREFIX}/usr/pyvenv.cfg" || die + + "${EPYTHON}" tests/test_all.py -v -x || + die "Tests failed with ${EPYTHON}" +} |
