Skip to content

bpo-39162 fix a logic bug in the Tcl/Tk include scanner for macOS in setup.py #17753

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

Closed
wants to merge 3 commits into from

Conversation

tonybaloney
Copy link
Contributor

@tonybaloney tonybaloney commented Dec 30, 2019

for fw in 'Tcl', 'Tk':
if is_macosx_sdk_path(F):
if not exists(join(sysroot, F[1:], fw + '.framework')):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, this condition would match, because in macOS 10.15 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework exists, however, F is not the path that it's checking, so it adds /System/Library/Frameworks/Tk.framework to the list of include_dirs

@tonybaloney
Copy link
Contributor Author

Wow, this function hasn't been touched in a really long time. requesting reviews from @ned-deily and @brettcannon

@ned-deily ned-deily self-assigned this Dec 30, 2019
@ned-deily
Copy link
Member

ned-deily commented May 18, 2020

Thanks again for the PR. After much consideration, I tried to address the problems noted here as well as some other problems in #20171 for bpo-34956.

@ned-deily ned-deily closed this May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants