fix: bundle stdlib that only artifacts import into frozen builds - #68
Merged
Conversation
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>
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.
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