Skip to content

Conversation

@henryiii
Copy link
Collaborator

@henryiii henryiii commented Aug 21, 2023

Description

This fixes a probably long standing bug where set(PYBIND11_FINDPYTHON ON) couldn't be used in manylinux. Fix #4802.

Suggested changelog entry:

* Don't require the libs component on CMake 3.18+ when using PYBIND11_FINDPYTHON (fixes manylinux builds).

devw4r added a commit to devw4r/namigator that referenced this pull request Sep 17, 2023
wjakob added a commit to wjakob/nanobind that referenced this pull request Oct 27, 2023
@wjakob
Copy link
Member

wjakob commented Oct 27, 2023

LGTM, nice catch!

@henryiii henryiii merged commit a18c10f into pybind:master Oct 27, 2023
@henryiii henryiii deleted the henryiii/fix/cmakemodule branch October 27, 2023 15:02
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Oct 27, 2023
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Mar 27, 2024
yglsaltfish pushed a commit to yglsaltfish/AimRT that referenced this pull request Sep 11, 2025
为兼容manylinux环境编译要求,无法引入Python3 Development,仅可使用Python3 Development.Module,pybind11在 2.12版本对此进行了fix。
ref: scikit-build/scikit-build-core#472 (comment)
pybind/pybind11#4805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Cannot find Python on manylinux with CMake>=3.27

3 participants