Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/packages/pyrealsense2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ versions:
gpl-sources:
filename: gpl-sources.tar
description: gcc and the copyleft libraries bundled in the wheel
- version: 2.59.1.11053
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Upstream-Status: Inappropriate [manylinux images ship no libpython by design; upstream builds its wheels on full distros where Development.Embed resolves]

CMake/external_pybind11.cmake asks FindPython for the whole Development
component (Module + Embed) only to read Python_SITEARCH for the install
dir. Development.Embed needs libpython, which the manylinux interpreters
deliberately do not ship, so configure fails with "Could NOT find Python
(missing: ... Development.Embed)". The extensions themselves are built
through pybind11's own Python lookup and never link libpython, so asking
for Development.Module alone is enough.

diff --git a/CMake/external_pybind11.cmake b/CMake/external_pybind11.cmake
index f2c4c03..e1fe8e4 100644
--- a/CMake/external_pybind11.cmake
+++ b/CMake/external_pybind11.cmake
@@ -71,7 +71,7 @@ function(get_pybind11)
find_package(PythonLibs REQUIRED)
set( PYTHON_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
else()
- find_package(Python REQUIRED COMPONENTS Interpreter Development)
+ find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
set( PYTHON_INSTALL_DIR "${Python_SITEARCH}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
endif()

Loading