forked from ports/contrib
21 lines
577 B
Plaintext
21 lines
577 B
Plaintext
# Description: C extensions for Python.
|
|
# URL: http://www.cython.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: python3-build python3-installer python3-wheel
|
|
|
|
name=python3-cython
|
|
version=3.0.8
|
|
release=1
|
|
source=(https://pypi.org/packages/source/C/Cython/Cython-$version.tar.gz)
|
|
|
|
build() {
|
|
cd Cython-$version
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
|
|
|
for f in cygdb cython cythonize; do
|
|
mv $PKG/usr/bin/$f $PKG/usr/bin/${f}3
|
|
done
|
|
}
|