Skip to content
Open
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/tensordict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ versions:
- filename: tensordict-0.14.2-cp314-cp314t-manylinux_2_39_riscv64.whl
sha256: 264c50df18f1a25004accdc3ea60b4a52e51cfd9f72b8f977e138d92ef2c2bee
requires-python: '>=3.10'
- version: 0.14.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 3f9f69dd229764f224841c70f2a8f071ff29f7d3 Mon Sep 17 00:00:00 2001
From: Ludovic Henry <git@ludovic.dev>
Date: Sun, 13 Sep 2026 00:49:14 +0200
Subject: [PATCH] csrc: request only Development.Module from FindPython3

CMakeLists.txt asks FindPython3 for the full Development component, which
requires both Development.Module and Development.Embed (a libpython usable
for embedding). manylinux wheel-building images build CPython with
Py_ENABLE_SHARED=0 and ship only a static libpython, so Development.Embed's
Python3_LIBRARIES lookup fails and configure aborts, even though building a
plain extension module only ever needs Development.Module. Reproduces the
same way on manylinux x86_64/aarch64, not just riscv64 (confirmed locally
against quay.io/pypa/manylinux_2_39_aarch64).

Upstream-Status: To upstream [not yet submitted; this repo does not open issues/PRs on third-party repositories]
---
tensordict/csrc/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tensordict/csrc/CMakeLists.txt b/tensordict/csrc/CMakeLists.txt
index 85b5519d..df3a426e 100644
--- a/tensordict/csrc/CMakeLists.txt
+++ b/tensordict/csrc/CMakeLists.txt
@@ -10,7 +10,7 @@ if(APPLE) # Check if the target OS is OSX/macOS
include(FindPythonPyEnv)
endif()

-find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
+find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
find_package(pybind11 2.13 REQUIRED)

file(GLOB SOURCES "*.cpp")
Loading