35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'python3-numpy'
|
|
pkgname=python3-numpy
|
|
version=1.17.4
|
|
revision=1
|
|
wrksrc="numpy-${version}"
|
|
build_style=python3-module
|
|
pycompile_module="numpy"
|
|
hostmakedepends="python3-setuptools python3-Cython gcc-fortran"
|
|
makedepends="python3-devel lapack-devel cblas-devel"
|
|
checkdepends="python3-pytest"
|
|
short_desc="Fast and sophisticated array facility to Python3"
|
|
maintainer="bra1nwave <brainwave@openmailbox.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.numpy.org/"
|
|
distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
|
|
checksum=e78ef65c08fc25c6172586e3b7ac366fbd49d9227d435d2f05184e9f3dd6317f
|
|
alternatives="numpy:f2py:/usr/bin/f2py3"
|
|
|
|
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/1408/steps/shell_3/logs/stdio"
|
|
|
|
do_check() {
|
|
./runtests.py
|
|
}
|
|
|
|
post_install() {
|
|
# create compat symlinks for .h files
|
|
vmkdir ${py3_inc}
|
|
ln -sfr ${DESTDIR}/${py3_sitelib}/numpy/core/include/numpy \
|
|
${DESTDIR}/${py3_inc}
|
|
|
|
rm -f ${DESTDIR}/usr/bin/f2py
|
|
|
|
rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|