FindPython with Development.module component in manylinux docker container
Hello everyone,
I have some problems when trying to use the FindPython
module with the Development.module
component inside a manylinux
docker image. Here is a my cmake file:
cmake_minimum_required(VERSION 3.18)
project(OTIOExperiment VERSION 0.0.1 LANGUAGES C CXX)
find_package(Python REQUIRED COMPONENTS Interpreter Development.module)
I run docker run --rm -ti -v $(pwd):/io quay.io/pypa/manylinux2010_x86_64 bash
and once in the container, I run PATH=/opt/_internal/cpython-3.9.4/bin:$PATH cmake .
and I get:
CMake Error at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Development.module) (found version
"3.9.4")
Call Stack (most recent call first):
/usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.20/Modules/FindPython/Support.cmake:3165 (find_package_handle_standard_args)
/usr/local/share/cmake-3.20/Modules/FindPython3.cmake:485 (include)
CMakeLists.txt:5 (find_package)
So it found the executable but couldn't find the Development.module
component.
I looked at #20425 (closed) and !4616 (merged) which seems to suggest that it should technically work.
The cmake
version in the docker image is 3.20.0
.
I have the feeling I might be missing something obvious (which is highly possible...).
Thanks a lot and let me know if you need more details!