2022-07-07 12:36:42 +08:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://numpy.org/
|
|
|
|
|
TERMUX_PKG_DESCRIPTION="The fundamental package for scientific computing with Python"
|
|
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2022-09-03 10:38:38 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2023-07-09 00:34:08 +00:00
|
|
|
TERMUX_PKG_VERSION="1.25.1"
|
2022-12-30 23:39:53 +01:00
|
|
|
TERMUX_PKG_SRCURL=git+https://github.com/numpy/numpy
|
2023-02-04 12:59:39 +09:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libopenblas, python"
|
2022-07-07 12:36:42 +08:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2022-09-03 17:38:00 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-11-23 09:53:02 +08:00
|
|
|
TERMUX_PKG_UPDATE_TAG_TYPE="latest-release-tag"
|
2023-01-12 15:18:01 +03:00
|
|
|
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel, pybind11, Cython, pythran"
|
2022-07-07 12:36:42 +08:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
|
bin/
|
|
|
|
|
"
|
|
|
|
|
|
2023-06-18 14:14:37 +08:00
|
|
|
termux_step_post_get_source() {
|
|
|
|
|
# numpy has switched to use meson-python by default,
|
|
|
|
|
# but meson-python hasn't supported cross compiling.
|
|
|
|
|
# See mesonbuild/meson-python#321
|
|
|
|
|
rm -f meson.build
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-01 10:20:48 +02:00
|
|
|
termux_step_pre_configure() {
|
2023-01-12 15:18:01 +03:00
|
|
|
export MATHLIB="m"
|
2023-02-04 12:59:39 +09:00
|
|
|
|
|
|
|
|
LDFLAGS+=" -lm"
|
2022-07-07 12:36:42 +08:00
|
|
|
}
|