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

Avoid collecting Wine built-in DLLs #6149

Merged
merged 3 commits into from Aug 23, 2021
Merged

Conversation

rokm
Copy link
Member

@rokm rokm commented Aug 22, 2021

Wine built-in DLLs are likely to cause problems under Windows, so excluding them increases the chances of the bundle working under Windows. On the other hand, even with Wine DLLs excluded, the bundle should still run under Wine as before.

For each excluded Wine DLL, we display a one-time warning message.

See #6145.

PyInstaller/compat.py Outdated Show resolved Hide resolved
Add a new flag, is_win_wine, which indicates that we are running
under Wine.

Implement a new function, is_wine_dll(), which checks if the given
file is a Wine build-in DLL (PE-converted or fake/placeholder).
Automatically exclude Wine built-in DLLs, regardless of the exclude
and include lists. Wine built-in DLLs are likely to cause problems
under Windows, so excluding them increases the chances of the bundle
working under Windows. On the other hand, even with Wine DLLs excluded,
the bundle should still run under Wine as before.
@rokm rokm merged commit 5557c54 into pyinstaller:develop Aug 23, 2021
@rokm rokm deleted the exclude-wine-dlls branch August 23, 2021 17:28
rokm added a commit to rokm/pyinstaller that referenced this pull request Feb 24, 2022
Back-port of pyinstaller#6149 to the v4 branch.

* compat: implement detection of Wine environment and Wine DLLs

Add a new flag, is_win_wine, which indicates that we are running
under Wine.

Implement a new function, is_wine_dll(), which checks if the given
file is a Wine build-in DLL (PE-converted or fake/placeholder).

* depend: automatically exclude Wine built-in DLLs

Automatically exclude Wine built-in DLLs, regardless of the exclude
and include lists. Wine built-in DLLs are likely to cause problems
under Windows, so excluding them increases the chances of the bundle
working under Windows. On the other hand, even with Wine DLLs excluded,
the bundle should still run under Wine as before.

* depend: display each excluded-Wine-DLL warning only once
bwoodsend pushed a commit that referenced this pull request Feb 24, 2022
Back-port of #6149 to the v4 branch.

* compat: implement detection of Wine environment and Wine DLLs

Add a new flag, is_win_wine, which indicates that we are running
under Wine.

Implement a new function, is_wine_dll(), which checks if the given
file is a Wine build-in DLL (PE-converted or fake/placeholder).

* depend: automatically exclude Wine built-in DLLs

Automatically exclude Wine built-in DLLs, regardless of the exclude
and include lists. Wine built-in DLLs are likely to cause problems
under Windows, so excluding them increases the chances of the bundle
working under Windows. On the other hand, even with Wine DLLs excluded,
the bundle should still run under Wine as before.

* depend: display each excluded-Wine-DLL warning only once
@bwoodsend bwoodsend added the backported Backported to v4 branch label Mar 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backported Backported to v4 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants