-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
BugBuild: CMakeCMake based build issueCMake based build issueLang: PythonPython wrapper issuePython wrapper issueOS: LinuxGNU/Linux OSGNU/Linux OS
Milestone
Description
Finding the Development component for Python (e.g. with FindPython3) fails if libpython isn't found.
However, it is ok for libpython not to exist if you simply want to compile Python extensions (as opposed to embedding Python in an application).
For example, the official Docker manylinux build images don't include libpython, to shrink the image size.
(see pypa/manylinux#484)
src: https://gitlab.kitware.com/cmake/cmake/-/issues/20425
In order to fix it we need to bump to CMake 3.18 and use Development.Module...
note: Development.Module is use to look for python header only since library is not available on manylinux.
note2: Development.Module has been introduced in CMake 3.18
ref: https://cmake.org/cmake/help/latest/module/FindPython3.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugBuild: CMakeCMake based build issueCMake based build issueLang: PythonPython wrapper issuePython wrapper issueOS: LinuxGNU/Linux OSGNU/Linux OS