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

Ensure pybind11 finds the right Python interpreter #292

Closed
wants to merge 1 commit into from

Conversation

fteicht
Copy link
Collaborator

@fteicht fteicht commented Dec 4, 2023

A change in the recent CMake policies prevents Pybind11 to use the Python interpreter given in scikit-decide's configure args via -DPYTHON_EXECUTABLE=/path/to/python-interpreter.

See pybind11's issue #4785 for more information.

This PR enforces Pybind11 to conform to cmake's CMP0148 policy and to use the python interpreter given to scikit-decide's configuration command line. This is critical since otherwise scikit-decide's build script might not create the wheel for the intended python version.

@fteicht fteicht added the bug Something isn't working label Dec 4, 2023
@fteicht fteicht requested a review from g-poveda December 4, 2023 10:55
@fteicht fteicht self-assigned this Dec 4, 2023
g-poveda
g-poveda previously approved these changes Dec 4, 2023
Copy link
Collaborator

@g-poveda g-poveda left a comment

Choose a reason for hiding this comment

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

Lgtm, as long as the checks pass :)

@g-poveda g-poveda self-requested a review December 4, 2023 11:03
@g-poveda g-poveda dismissed their stale review December 4, 2023 11:04

waiting some changes so that the build are not failing

@fteicht
Copy link
Collaborator Author

fteicht commented Dec 4, 2023

It happens to be a wrong configuration on my side. The default behaviour of pybind11 works like a charm whereas the line which this PR adds only make things more complex and it requires more work to actually work.

@fteicht fteicht closed this Dec 4, 2023
@fteicht fteicht deleted the pybind11-find-python branch December 4, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants