File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Alpine-Contributor: Stuart Cardall <developer@it-offshore.co.uk>
2+ # Alpine-Contributor: Oleg Titov <oleg.titov@gmail.com>
3+ # Alpine-Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
4+ # Maintainer: Ethan Leir <eleir@qnx.com>
5+ pkgname=cython
6+ pkgver=3.2.4
7+ pkgrel=0
8+ pkgdesc=" Cython is an optimising static compiler for both the Python & the extended Cython programming languages."
9+ url=" https://cython.org/"
10+ arch=" all"
11+ license=" Apache-2.0"
12+ makedepends=" python3-gpep517 python3-setuptools python3-wheel python3-dev"
13+ depends=" python3"
14+ subpackages=" cython-doc"
15+ source=" cython-$pkgver .tar.gz::https://github.com/cython/cython/archive/$pkgver .tar.gz"
16+ # Lots of broken strtod() conversions
17+ options=" !check"
18+
19+ build () {
20+ CC=clang \
21+ CXX=clang++ \
22+ CPPFLAGS=" ${CPPFLAGS} -D_QNX_SOURCE -fPIC" \
23+ gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
24+ }
25+
26+ # cpp_mutex.pyx: mutex.test_once_flag2:
27+ # terminate called after throwing an instance of 'std::runtime_error'
28+ # Fatal Python error: Aborted
29+ check () {
30+ export CC=clang
31+ export CXX=clang++
32+ export CPPFLAGS=" ${CPPFLAGS} -D_QNX_SOURCE -fPIC"
33+ python3 -m venv --clear --without-pip --system-site-packages .testenv
34+ .testenv/bin/python3 -m installer .dist/* .whl
35+ .testenv/bin/python3 runtests.py -j${JOBS:- $(nproc)} --exclude=" cpp_mutex"
36+ }
37+
38+ package () {
39+ python3 -m installer -d " $pkgdir " .dist/* .whl
40+
41+ install -Dm 644 LICENSE.txt " $pkgdir /usr/share/licenses/cython/license"
42+ install -Dm 644 README.rst " $pkgdir /usr/share/doc/cython/readme.rst"
43+ }
44+
45+ sha512sums="
46+ 5ab8e39739a79debbe89b2ff5b6d88e1b7aafd5ad34460f14f3fc2bd90c10bdc9d6aa5b5844a48e30402dde9790cb9abcba3dc2b4e8cde24c4eeee818a180099 cython-3.2.4.tar.gz
47+ "
You can’t perform that action at this time.
0 commit comments