dev-python/versioneer: Workaround build failure against older ver.

Closes: https://bugs.gentoo.org/870241
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-10-17 06:53:26 +02:00
parent 2542522816
commit b7836c0d54

View File

@@ -35,6 +35,14 @@ BDEPEND="
)
"
python_compile() {
cat > "${T}"/versioneer.py <<-EOF || die
raise ImportError("Please pretend I'm not here!")
EOF
local -x PYTHONPATH=${T}:${PYTHONPATH}
distutils-r1_python_compile
}
python_test() {
esetup.py make_versioneer