mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user