Skip to content

Fix wheels bundling wrong Python version#37

Merged
tuxu merged 1 commit intomasterfrom
fix-python-interpreter
Mar 22, 2026
Merged

Fix wheels bundling wrong Python version#37
tuxu merged 1 commit intomasterfrom
fix-python-interpreter

Conversation

@tuxu
Copy link
Copy Markdown
Owner

@tuxu tuxu commented Mar 21, 2026

pybind11 v3.0.1 reads Python_EXECUTABLE instead of PYTHON_EXECUTABLE. The old variable name was silently ignored so that CMake's FindPython picked up whatever Python was first in the system PATH instead of the one running the build.

See https://github.com/pybind/pybind11/blob/master/tools/pybind11Config.cmake.in#L81

Fixes #34

pybind11 v3.0.1 reads `Python_EXECUTABLE` instead of
`PYTHON_EXECUTABLE`. The old variable name was silently ignored so that
CMake's FindPython picked up whatever Python was first in the system
PATH instead of the one running the build.

Fixes #34
Copy link
Copy Markdown
Collaborator

@fakufaku fakufaku left a comment

Choose a reason for hiding this comment

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

Nice find. Thanks for taking the time to fix this!

@tuxu tuxu merged commit 6d68220 into master Mar 22, 2026
30 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wheels bundle the wrong version

2 participants