From a0b32d540af631f7dade8a070e13ef4ccfdb8941 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sun, 30 Oct 2022 07:34:54 +0000 Subject: [PATCH] python-torch: Fix NUMPY_INCLUDE_DIR in accordance with `python-numpy` built through pip. %ci:no-build --- packages/python-torch/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python-torch/build.sh b/packages/python-torch/build.sh index 00c604b7f3..30754c0113 100644 --- a/packages/python-torch/build.sh +++ b/packages/python-torch/build.sh @@ -52,7 +52,7 @@ termux_step_pre_configure() { -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${TERMUX_PKG_SRCDIR}/torch -DCMAKE_PREFIX_PATH=${TERMUX_PREFIX}/lib/python${_PYTHON_VERSION}/site-packages - -DNUMPY_INCLUDE_DIR=$( echo ${TERMUX_PREFIX}/lib/python${_PYTHON_VERSION}/site-packages/*/numpy/core/include ) + -DNUMPY_INCLUDE_DIR=${TERMUX_PREFIX}/lib/python${_PYTHON_VERSION}/site-packages/numpy/core/include -DPYTHON_EXECUTABLE=$(command -v python3) -DPYTHON_INCLUDE_DIR=${TERMUX_PREFIX}/include/python${_PYTHON_VERSION} -DPYTHON_LIBRARY=${TERMUX_PREFIX}/lib//libpython${_PYTHON_VERSION}.so