summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-pytorch-runpath.patch
diff options
context:
space:
mode:
authorAyan Das <bvits@riseup.net>2026-01-29 02:08:56 +0530
committerLudovic Courtès <ludo@gnu.org>2026-02-22 18:41:10 +0100
commit52b5ef81a12e3eeb0ee710546bfd054b7cf1e6d3 (patch)
treea1d9fc88a7e1598d8f27e583b8b932175c8bd460 /gnu/packages/patches/python-pytorch-runpath.patch
parent5895cb75580acbc83406daeb0bcb8dcf15b71615 (diff)
gnu: python-pytorch: Update to 2.10.0.
* gnu/packages/machine-learning.scm (%python-pytorch-version): Update to 2.10.0. (%python-pytorch-src)[source]: Update hash. (python-pytorch)[arguments]: Fix build by including Utils.hpp. * gnu/packages/patches/python-pytorch-runpath.patch: Update for 2.10.0. * gnu/packages/patches/python-pytorch-system-libraries.patch: Update for 2.10.0. Change-Id: Ic579058f302d2d8face536ae9980f06854888615 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/patches/python-pytorch-runpath.patch')
-rw-r--r--gnu/packages/patches/python-pytorch-runpath.patch19
1 files changed, 3 insertions, 16 deletions
diff --git a/gnu/packages/patches/python-pytorch-runpath.patch b/gnu/packages/patches/python-pytorch-runpath.patch
index cd8bea370b8..d491698f961 100644
--- a/gnu/packages/patches/python-pytorch-runpath.patch
+++ b/gnu/packages/patches/python-pytorch-runpath.patch
@@ -1,6 +1,6 @@
-Libraries (such as 'libtorch_cpu.so') and executables (such as 'torch_shm_manager')
-get installed, quite surprisingly, to 'lib/python3.8/site-packages/{bin,lib}'.
-Make sure RUNPATH matches that.
+Libraries (such as 'libtorch_cpu.so') and executables (such as
+'torch_shm_manager') get installed, quite surprisingly, to
+'lib/pythonX.Y/site-packages/{bin,lib}'. Make sure RUNPATH matches that.
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index be45936a8..7b19e5359 100644
@@ -15,16 +15,3 @@ index be45936a8..7b19e5359 100644
endif(APPLE)
# Use separate rpaths during build and install phases
set(CMAKE_SKIP_BUILD_RPATH FALSE)
-diff --git a/functorch/CMakeLists.txt b/functorch/CMakeLists.txt
-index bdfa4bfe4..2a75e3825 100644
---- a/functorch/CMakeLists.txt
-+++ b/functorch/CMakeLists.txt
-@@ -26,7 +26,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE pybind::pybind11)
-
- set_target_properties(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY
- ${CMAKE_BINARY_DIR}/functorch)
--set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "${_rpath_portable_origin}/../torch/lib")
-+set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN/../torch/lib")
-
- # Copy-pasted prefix/suffix logic for Python extensions from
- # https://github.com/pytorch/pytorch/blob/33bb8ae350611760139457b85842b1d7edf9aa11/caffe2/CMakeLists.txt#L1975