Skip to content

Can't use CMake based build on manylinux #2774

@Mizux

Description

@Mizux

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions