wok view python-numpy/receipt @ rev 23875

Up alpine (2.23), ansible (2.9.10), wordpress (5.4.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 27 16:47:12 2020 +0000 (2020-06-27)
parents 8dd8bab3f0ca
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="python-numpy"
4 VERSION="1.16.4" # last version fpr Python 2
5 CATEGORY="development"
6 SHORT_DESC="Scientific computing library for the Python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/numpy/"
11 SOURCE="numpy"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$SOURCE/$SOURCE/archive/v$VERSION.tar.gz"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-cython python-dev python-setuptools"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 {
22 python setup.py build &&
23 python setup.py install --root=$DESTDIR
24 } 2>&1 | grep -Ev '(conftest.c:|configtest.c:)'
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $install/usr $fs
31 }
33 # Remove old package.
34 post_install()
35 {
36 [ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
37 rm -rf "$1/var/lib/tazpkg/installed/numpy"
38 }