bpo-39162 fix a logic bug in the Tcl/Tk include scanner for macOS in setup.py by tonybaloney · Pull Request #17753 · python/cpython
|
|
||
| for fw in 'Tcl', 'Tk': | ||
| if is_macosx_sdk_path(F): | ||
| if not exists(join(sysroot, F[1:], fw + '.framework')): |
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
Wow, this function hasn't been touched in a really long time. requesting reviews from @ned-deily and @brettcannon
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