blob: ca5c1c4a36c58219f97c8bbe69031c9164f76641 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
NAME="python-cffi"
DESC="Foreign function interface for calling C code from Python3"
MAKEDEPS="python libffi"
PKG_VER=1.15.0
SOURCE="https://files.pythonhosted.org/packages/source/c/cffi/cffi-$PKG_VER.tar.gz"
ADDITIONAL="
musl-compat.patch
"
prepare () {
apply_patches
}
build() {
python3 setup.py build
}
check() {
python3 setup.py build_ext -i
python3 -m pytest --disable-pytest-warnings c/ testing/ || true
}
package() {
python3 setup.py install --prefix=/usr --root="$PKG_DEST"
}
|