FS#78665 - [python-pytorch] torch.utils.cmake_prefix_path does not point to TorchConfig.cmake location

Attached to Project: Community Packages
Opened by piernov (piernov) - Wednesday, 31 May 2023, 16:47 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 19 June 2023, 12:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Konstantin Gizdov (kgizdov)
Torsten Keßler (tpkessler)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In python-pytorch's PKGBUILD, CMake files are moved from `/usr/lib/python3.11/site-packages/torch/share/cmake` to `/usr/lib/cmake`, which makes sense, however, the `torch.utils.cmake_prefix_path` variable still points to `/usr/lib/python3.11/site-packages/torch/share/cmake`. Some other libraries may use this variable as part of their build system to find TorchConfig.cmake.
Either `torch/utils/__init__.py` should be patched to point to ArchLinux' location, or a symbolic link could be made to redirect `/usr/lib/python3.11/site-packages/torch/share/cmake` to `/usr/lib/cmake` to `/usr/lib/cmake`.

Additional info:
python-pytorch 2.0.1-2
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Monday, 19 June 2023, 12:51 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 01 June 2023, 05:18 GMT
Hey, could you provide a patch that works for you?
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 16 June 2023, 00:58 GMT
Should be fixed in testing. Could you check that out?
Comment by piernov (piernov) - Monday, 19 June 2023, 12:05 GMT
Sorry for the delay. Yes, it looks like it is working as expected, thanks.

Loading...