diff --git a/docs/packages/tensordict.yaml b/docs/packages/tensordict.yaml index a90f6260006..cc1a83000e7 100644 --- a/docs/packages/tensordict.yaml +++ b/docs/packages/tensordict.yaml @@ -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 diff --git a/patches/tensordict/0.14.3/0001-csrc-request-only-Development.Module-from-FindPython.patch b/patches/tensordict/0.14.3/0001-csrc-request-only-Development.Module-from-FindPython.patch new file mode 100644 index 00000000000..a7293928967 --- /dev/null +++ b/patches/tensordict/0.14.3/0001-csrc-request-only-Development.Module-from-FindPython.patch @@ -0,0 +1,32 @@ +From 3f9f69dd229764f224841c70f2a8f071ff29f7d3 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +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")