Files
termux-packages/x11-packages/python-torch/0001-cmake-python-find-Development-before-Development.Module.patch
termux-pacman-bot 9c67005bc6 bump(main/python-numpy): 2.1.1 and update revdeps
Update to numpy 2, and update reverse dependencies:

- matplotlib from 3.9.1 to 3.9.2
- python-contourpy from 1.2.1 to 1.3.0
- python-numpy from 1.26.5 to 2.1.1
- python-onnxruntime from 1.19.0 to 1.19.2
- python-scipy from 1.14.0 to 1.14.1
- python-torch from 2.1.2 to 2.4.1
- python-torchaudio from 2.0.1 to 2.4.1
- python-torchvision from 0.15.1 to `0.19.1
- Revbump: python-pyarrow, inkscape and opencv

Some of these packages does not currently build before this PR. Getting these updated and buildable is a nice step to prepare for [python 3.12](https://github.com/termux/termux-packages/pull/18078).

Fixes #21059, #21110, #21194 and #21284.

Co-authored-by: Chongyun Lee <45286352+licy183@users.noreply.github.com>
2024-10-04 19:08:43 +00: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)