-
Notifications
You must be signed in to change notification settings - Fork 639
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
[CMake] Refactor finding Python #19592
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -641,7 +641,6 @@ if(IREE_BUILD_PYTHON_BINDINGS) | |
# seems to be robust generally. | ||
# See: https://reviews.llvm.org/D118148 | ||
# If building Python packages, we have a hard requirement on 3.9+. | ||
find_package(Python3 3.9 COMPONENTS Interpreter Development NumPy) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't see how that could be related? One of the sample builds (https://github.com/iree-org/iree/actions/runs/12514308966/job/34910189766#step:8:77) already configures with explicit Python executables set ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That comes from a discussion on Discord but it turned out this is not related. |
||
find_package(Python3 3.9 COMPONENTS Interpreter Development.Module NumPy REQUIRED) | ||
# Some parts of the build use FindPython instead of FindPython3. Why? No | ||
# one knows, but they are different. So make sure to bootstrap this one too. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is truly safe to remove now, then also reword the comments above.
This in particular is explaining why there are two similar calls to
find_package
back to back:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update the PR accordingly after our next release.