0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-11 09:45:33 +00:00
Files
termux-packages/packages/python-torch/0001-cmake-python-find-Development-before-Development.Module.patch
Fredrik Fornwall 3e14806ae6 chore(main/python-{torch,torchaudio,torchvision}) Move to main
Move pytorch from x11 to main after removal of opencv dependencies
in #21764.
2024-10-12 15:07:54 +02:00

13 lines
423 B
Diff

Seems a bug of cmake. Finding `Development` before other components fixes this.
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -854,6 +854,7 @@
if(USE_NUMPY)
list(APPEND PYTHON_COMPONENTS NumPy)
endif()
+ find_package(Python COMPONENTS Development)
find_package(Python COMPONENTS Interpreter OPTIONAL_COMPONENTS ${PYTHON_COMPONENTS})
else()
find_package(Python COMPONENTS Interpreter)