From 56081f6227c4e7642dfd3d1448a3f1c663d18db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 13 Apr 2025 16:31:37 +0200 Subject: [PATCH] dev-python/wxpython: Clean extensions between implementations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../{wxpython-4.2.3.ebuild => wxpython-4.2.3-r1.ebuild} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename dev-python/wxpython/{wxpython-4.2.3.ebuild => wxpython-4.2.3-r1.ebuild} (93%) 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 83789483cd5eb..d6cfd11056687 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