Skip to content

Commit 8de32d8

Browse files
committed
new package: python3.9-numpy
1 parent c3fa103 commit 8de32d8

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

tur-pypi/python3.9-numpy/build.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
TERMUX_PKG_HOMEPAGE=https://numpy.org/
2+
TERMUX_PKG_DESCRIPTION="The fundamental package for scientific computing with Python"
3+
TERMUX_PKG_LICENSE="BSD 3-Clause"
4+
TERMUX_PKG_MAINTAINER="@termux-user-repository"
5+
TERMUX_PKG_VERSION="1.24.2"
6+
TERMUX_PKG_SRCURL=git+https://github.com/numpy/numpy
7+
TERMUX_PKG_DEPENDS="libc++, libopenblas, python3.9"
8+
TERMUX_PKG_BUILD_IN_SRC=true
9+
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel, pybind11, 'Cython<3', pythran"
10+
TERMUX_PKG_AUTO_UPDATE=true
11+
TERMUX_PKG_RM_AFTER_INSTALL="
12+
bin/
13+
"
14+
15+
TERMUX_PYTHON_VERSION=3.9
16+
TERMUX_PYTHON_CROSSENV_PREFIX=$TERMUX_PKG_BUILDDIR/python39-crossenv-prefix-$TERMUX_ARCH
17+
TUR_AUTO_AUDIT_WHEEL=true
18+
19+
source $TERMUX_SCRIPTDIR/common-files/tur_elf_cleaner_for_wheel.sh
20+
21+
termux_step_post_get_source() {
22+
export PATH="$TERMUX_PREFIX/opt/python$TERMUX_PYTHON_VERSION/cross/bin:$PATH"
23+
}
24+
25+
termux_step_pre_configure() {
26+
export MATHLIB="m"
27+
28+
LDFLAGS+=" -lm"
29+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--- a/site.cfg
2+
+++ b/site.cfg
3+
@@ -0,0 +1,9 @@
4+
+[DEFAULT]
5+
+library_dirs = @TERMUX_PREFIX@/lib
6+
+include_dirs = @TERMUX_PREFIX@/include
7+
+
8+
+[openblas]
9+
+libraries = openblas
10+
+library_dirs = @TERMUX_PREFIX@/lib
11+
+include_dirs = @TERMUX_PREFIX@/include
12+
+runtime_library_dirs = @TERMUX_PREFIX@/lib
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/numpy/core/tests/test_mem_policy.py
2+
+++ b/numpy/core/tests/test_mem_policy.py
3+
@@ -18,6 +18,8 @@
4+
"""
5+
if sys.platform.startswith('cygwin'):
6+
pytest.skip('link fails on cygwin')
7+
+ if os.path.exists("/system/bin/app_process"):
8+
+ pytest.skip('link fails on Android')
9+
if IS_WASM:
10+
pytest.skip("Can't build module inside Wasm")
11+
functions = [

0 commit comments

Comments
 (0)