Files
Henry Schreiner c538993a7c fix(cmake): don't link SHARED modules against libpython in FindPython mode
Python_add_library() hard-links non-MODULE libraries against
Python::Python. On macOS with a statically linked interpreter (e.g.
uv / python-build-standalone), importing such a module loads a second,
uninitialized copy of the Python runtime and aborts with a fatal
PyInterpreterState_Get error. Bypass python_add_library for SHARED and
link pybind11::module instead of pybind11::embed, matching the classic
pybind11Tools.cmake behavior.

Assisted-by: ClaudeCode:claude-fable-5
2026-08-07 00:18:37 -04:00
..