summaryrefslogtreecommitdiff
path: root/dev-python/wxpython
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-04-13 16:31:37 +0200
committerMichał Górny <mgorny@gentoo.org>2025-04-13 17:21:59 +0200
commit56081f6227c4e7642dfd3d1448a3f1c663d18db5 (patch)
tree79f58c9661fce0fce5c112d2a53d5f66f045a086 /dev-python/wxpython
parent384eef074cfd2db6187ce723c8b4239d7e6d1331 (diff)
downloadgentoo-56081f6227c4e7642dfd3d1448a3f1c663d18db5.tar.gz
gentoo-56081f6227c4e7642dfd3d1448a3f1c663d18db5.tar.bz2
gentoo-56081f6227c4e7642dfd3d1448a3f1c663d18db5.zip
dev-python/wxpython: Clean extensions between implementations
Clean extensions after installing each wheel to avoid them leaking into the subsequent builds. Closes: https://bugs.gentoo.org/953558 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/wxpython')
-rw-r--r--dev-python/wxpython/wxpython-4.2.3-r1.ebuild (renamed from dev-python/wxpython/wxpython-4.2.3.ebuild)8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-python/wxpython/wxpython-4.2.3.ebuild b/dev-python/wxpython/wxpython-4.2.3-r1.ebuild
index 83789483cd5e..d6cfd1105668 100644
--- a/dev-python/wxpython/wxpython-4.2.3.ebuild
+++ b/dev-python/wxpython/wxpython-4.2.3-r1.ebuild
@@ -9,7 +9,7 @@ PYPI_NO_NORMALIZE=1
PYPI_PN="wxPython"
WX_GTK_VER="3.2-gtk3"
-inherit distutils-r1 multiprocessing virtualx wxwidgets pypi
+inherit distutils-r1 multilib multiprocessing virtualx wxwidgets pypi
DESCRIPTION="A blending of the wxWindows C++ class library with Python"
HOMEPAGE="
@@ -95,6 +95,11 @@ python_compile() {
distutils-r1_python_compile
+ # This package's built system relies on copying extensions back
+ # to source directory for setuptools to pick them up. This is
+ # hopeless.
+ find -name "*$(get_modname)" -delete || die
+
cp "${S}/sip_corewxAppTraits.cpp" "${S}/sip/cpp/" || die
}
@@ -128,6 +133,7 @@ python_test() {
EPYTEST_IGNORE+=( unittests/test_webview.py )
fi
+ rm -rf wx || die
# We use pytest-forked as opensuse does to avoid tests corrupting each
# other.
virtx epytest --forked unittests