[#962] Pin wxPython to 4.2.5, fix Linux AppImage/Flatpak build failure - #963
Merged
eoyilmaz merged 2 commits intoJul 28, 2026
Merged
Conversation
…from source wxPython 4.3.0 was just published to PyPI with no Linux wheels at all (macOS/Windows only). requirements.txt pinned wxPython with no upper bound, so pip picked 4.3.0 as the newest match, found no wheel on extras.wxpython.org (which still tops out at 4.2.5 there) or PyPI, and fell back to building wxWidgets from source in the AppImage job, which only installs runtime GTK/X11 libraries and fails without the gtk+-3.0/libcurl dev headers a source build needs. Since wxPython is being phased out in favour of Qt and is only needed by the not-yet-ported legacy wx_* modules, pin it to 4.2.5 (already the version pytest.yml pins independently) instead of chasing extras.wxpython.org's build lag on every future release. Also add --only-binary wxpython to build-appimage.sh and the Flatpak python-wxPython module so a future drift fails fast with a clear pip error instead of silently attempting a doomed source build.
Anticipates the reasonable-looking but wrong fix of matching the wheel to the CI runner's Ubuntu version: flatpak-builder builds this module sandboxed inside org.freedesktop.Platform//25.08, not the raw host, so the runner's own Ubuntu version is irrelevant to the wheel's ABI. The ubuntu-22.04 pin is tied to hand-extracted libjpeg8/libtiff5/libjbig0/ libdeflate0 shim modules from issue #232; swapping wheel versions needs those shims reworked and re-verified on real hardware, not just a URL edit.
eoyilmaz
deleted the
962-nightly-appimage-build-fails-wxpython-4-3-0-no-linux-wheels
branch
July 28, 2026 19:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requirements.txt's unboundedwxPython >= 4.2.2, found no wheel anywhere for Linux, and fell back to building wxWidgets from source, which fails since the AppImage job only installs runtime GTK/X11 libraries, not thegtk+-3.0/libcurldev headers a source build needs.wxPython==4.2.5inrequirements.txt(matching whatpytest.ymlalready pins independently) and in the Flatpak manifest'spython-wxPythonmodule, since wxPython is being phased out for Qt anyway and doesn't need to track every upstream release.--only-binary wxpythontobuild-appimage.shand the Flatpak module so a future version drift fails fast with a clear pip error instead of silently attempting a doomed multi-minute source build.python-wxPythonmodule deliberately stays on theubuntu-22.04extras.wxpython.org wheel rather thanubuntu-24.04, even though the CI runner itself is 24.04:flatpak-builderbuilds that module sandboxed insideorg.freedesktop.Platform//25.08, not the raw host, and the 22.04 wheel's ABI is what the hand-builtlibjpeg8/libtiff5/libjbig0/libdeflate0shim modules (issue Is there any plan for flatpak or appImage version? #232) are matched to.Fixes #962.
Test plan
build-appimage.shand the same Flatpak manifest)