Repository navigation
fix(build): correct PyInstaller Qt packaging args and add Linux executable integration test - #6
Merged
Conversation
Agent-Logs-Url: https://github.com/RaymondSu-Public-Base/Vibe-helloworld-python/sessions/9b755e5d-ab7f-4985-90af-4908c17bff38 Co-authored-by: RaymondSu-Public-Base <29174601+RaymondSu-Public-Base@users.noreply.github.com>
Agent-Logs-Url: https://github.com/RaymondSu-Public-Base/Vibe-helloworld-python/sessions/9b755e5d-ab7f-4985-90af-4908c17bff38 Co-authored-by: RaymondSu-Public-Base <29174601+RaymondSu-Public-Base@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix incorrect parameters for Pyinstaller in Windows executable
fix(build): correct PyInstaller Qt packaging args and add Linux executable integration test
May 15, 2026
…: cannot call python dll outside .exe - Replaced build param --onefile by --onedir
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
Windows packaged executable was failing at runtime due to incomplete PyQt5 bundling. This change updates PyInstaller arguments to collect full Qt assets and adds explicit Linux executable integration coverage.
Related Issue
Type Of Change
What Changed
--hidden-import PyQt5.sipwith--collect-all PyQt5insrc/hello_python/build.pyto bundle required PyQt5 runtime resources.tests/test_build_class.pyand Windows PyInstaller invocation intests/test_build.pyto match the new packaging strategy.test_build_linux_executable(slow, Linux-only) intests/test_build.pyto explicitly verify Linux build output.How To Test
List exact commands and expected outcomes.
poetry run pytest -m "not slow" -v poetry run python -m hello_python.codestyle check poetry run pytest tests/test_build.py::TestBuildExecutable::test_build_linux_executable -m slow -vExpected outcomes:
dist/linux/hello-python-linux.Checklist
poetry run pre-commit run --all-files)poetry run ruff check .)poetry run ruff format --check .)poetry run pytest -m "not slow")poetry run python -m hello_python.build) (if applicable)Validation Evidence
Paste relevant output:
UI/UX Changes (if applicable)
README.mdordocs/*)Before/After screenshots or links:
CI Checklist
.github/workflows/*)poetry.lockupdated when dependencies changedQT_QPA_PLATFORM=offscreenwhen needed)Risk And Rollback
src/hello_python/build.pyand corresponding test updates intests/test_build.py/tests/test_build_class.py.Reviewer Checklist