Skip to content

fix: bundle stdlib that only artifacts import into frozen builds - #68

Merged
abrignoni merged 1 commit into
mainfrom
fix/frozen-build-hidden-imports
Aug 11, 2026
Merged

fix: bundle stdlib that only artifacts import into frozen builds#68
abrignoni merged 1 commit into
mainfrom
fix/frozen-build-hidden-imports

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Pre-flight for the test_builds workflow port, same frozen-build defect class as ALEAPP #1097, RLEAPP #407 and VLEAPP #124: artifacts are bundled as data files and imported from disk at runtime, so PyInstaller's import-graph analysis never sees what they import, and it prunes stdlib it cannot see used.

DLEAPP's third-party coverage was already complete (bs4, pytz, simplekml ride the main graph via ilapfuncs), so the gap here is stdlib only: plistlib, email.utils and xml.etree.ElementTree are imported only by artifacts (the roblox modules among others), with base64 and struct added alongside for the same reason. The existing mailbox entry in these specs is this exact fix applied once by hand.

Verified locally: built dleapp_macOS.spec on Python 3.14 with these changes and ran the frozen CLI end to end (--help plus an empty-input run): 88 modules loaded, exit 0, no import errors.

🤖 Generated with Claude Code

Same frozen-build defect class as ALEAPP #1097, RLEAPP #407 and VLEAPP
#124: artifacts are bundled as data files and imported from disk at
runtime, so PyInstaller never sees their imports, and it prunes stdlib
it cannot see used. DLEAPP's third-party coverage was already complete
(bs4, pytz and simplekml ride the graph via ilapfuncs), but plistlib,
email.utils and xml.etree.ElementTree are imported only by artifacts
(the roblox modules among others) and were absent; base64 and struct
added alongside for the same reason. The existing 'mailbox' entry was
this exact fix applied once by hand.

Verified by building dleapp_macOS.spec on Python 3.14 and running the
frozen CLI end to end: 88 modules loaded, exit 0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 465e922 into main Aug 11, 2026
5 checks passed
@abrignoni
abrignoni deleted the fix/frozen-build-hidden-imports branch August 11, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant