mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-29 06:02:40 +00:00
chore(main/python-{torch,torchaudio,torchvision}) Move to main
Move pytorch from x11 to main after removal of opencv dependencies in #21764.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user