commit:     56081f6227c4e7642dfd3d1448a3f1c663d18db5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 13 14:31:37 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 13 15:21:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56081f62

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 <AT> gentoo.org>

 .../wxpython/{wxpython-4.2.3.ebuild => wxpython-4.2.3-r1.ebuild}  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-python/wxpython/wxpython-4.2.3.ebuild 
b/dev-python/wxpython/wxpython-4.2.3-r1.ebuild
similarity index 93%
rename from dev-python/wxpython/wxpython-4.2.3.ebuild
rename to 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

Reply via email to