49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Template file for 'python-numpy'
|
|
pkgname=python-numpy
|
|
version=1.14.2
|
|
revision=1
|
|
wrksrc="numpy-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools
|
|
python-Cython python3-Cython gcc-fortran"
|
|
makedepends="python-devel python3-devel lapack-devel cblas-devel"
|
|
pycompile_module="numpy"
|
|
short_desc="Fast and sophisticated array facility to Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.numpy.org/"
|
|
license="BSD-3-Clause"
|
|
distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
|
|
checksum=e8e7b08f43519a2c4b0c7f511543ac665b46d7edd755cf9f3b0b23d0adde7eb2
|
|
# Needs cross Python headers and/or libs issues sorted out.
|
|
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/1408/steps/shell_3/logs/stdio"
|
|
|
|
alternatives="numpy:f2py:/usr/bin/f2py2"
|
|
|
|
export ATLAS=None
|
|
LDFLAGS="-shared"
|
|
|
|
post_install() {
|
|
# create compat symlinks for .h files
|
|
vmkdir ${py2_inc}
|
|
ln -sfr ${DESTDIR}/${py2_sitelib}/numpy/core/include/numpy \
|
|
${DESTDIR}/${py2_inc}
|
|
vmkdir ${py3_inc}
|
|
ln -sfr ${DESTDIR}/${py3_sitelib}/numpy/core/include/numpy \
|
|
${DESTDIR}/${py3_inc}
|
|
|
|
rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-numpy_package() {
|
|
alternatives="numpy:f2py:/usr/bin/f2py3"
|
|
pycompile_module="numpy"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/f2py3
|
|
vmove ${py3_sitelib}
|
|
vmove ${py3_inc}
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|