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

depend: exempt OSX system Tcl/Tk libs from relative path rewrite #5172

Merged
merged 2 commits into from
Sep 28, 2020

Conversation

rokm
Copy link
Member

@rokm rokm commented Sep 15, 2020

The older python.org builds that use system Tcl/Tk framework have their _tkinter.cpython-*-darwin.so library linked against /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl and /Library/Frameworks/Tk.framework/Versions/8.5/Tk, although the actual frameworks are located in /System/Library/Frameworks.

Therefore, we fail to recognize these libraries as system ones, and rewrite their paths with relative ones. The resulting program fails to run due to missing libraries (as we do not bundle them).

To fix the issue, these two libraries need to be explicitly exempted from the path overwrite.

The older python.org builds that use system Tcl/Tk framework have
their _tkinter.cpython-*-darwin.so library linked against
/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl and
/Library/Frameworks/Tk.framework/Versions/8.5/Tk, although the
actual frameworks are located in /System/Library/Frameworks.

Therefore, we fail to recognize these libraries as system ones,
and rewrite their paths with relative ones. The resulting program
fails to run due to missing libraries (as we do not bundle them).

To fix the issue, these two libraries need to be explicitly
exempted from the path overwrite.
@Legorooj Legorooj merged commit 99c6e8b into pyinstaller:develop Sep 28, 2020
@rokm rokm deleted the macos-python-system-tcltk branch October 1, 2020 10:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
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