Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building: PKG: ensure DATA files are excluded when in onedir mode #7708

Merged
merged 1 commit into from Jun 16, 2023

Conversation

rokm
Copy link
Member

@rokm rokm commented Jun 16, 2023

When building PKG for onedir build, ensure that DATA entries are put into dependencies list instead of including them in the PKG. This complements existing behavior for BINARY and EXTENSION entries, and prevents a onedir build from becoming a broken onefile one if user accidentally passes binaries and data files TOCs to EXE instead of COLLECT when manually editing the spec file (see #7699).

When building PKG for `onedir` build, ensure that `DATA` entries
are put into dependencies list instead of including them in the PKG.
This complements existing behavior for `BINARY` and `EXTENSION`
entries, and prevents a `onedir` build from becoming a broken
`onefile` one if user accidentally passes binaries and data files
TOCs to `EXE` instead of `COLLECT` when manually editing the
spec file.
@rokm rokm merged commit a87ed7e into pyinstaller:develop Jun 16, 2023
18 checks passed
@rokm rokm deleted the onedir-pkg-datas branch June 16, 2023 23:16
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants