Files
gentoo/dev-python/librt/librt-0.7.5.ebuild
Eli Schwartz 03e7ca2954 dev-python/librt: suppress setuptools build parallelism
It is badly broken as extension modules reuse sources, so parallelism
leads to multiple racing instances writing to the same object files.

Closes: https://bugs.gentoo.org/967476
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2026-01-10 23:10:51 -05:00

41 lines
789 B
Bash

# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/mypyc/librt
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 pypi
DESCRIPTION="Mypyc runtime library"
HOMEPAGE="
https://github.com/mypyc/librt/
https://pypi.org/project/librt/
"
LICENSE="MIT PSF-2.4"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390"
BDEPEND="
test? (
dev-python/mypy-extensions[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_compile() {
# setuptools is broken for C extensions, bug #907718, bug #967476 etc.
distutils-r1_python_compile -j1
}
python_test() {
rm -rf librt || die
epytest smoke_tests.py
}