# Template file for 'python-Cython' pkgname=python-Cython version=0.29 revision=2 wrksrc="Cython-${version}" build_style=python-module pycompile_module="Cython pyximport cython.py" hostmakedepends="python-devel python3-devel python-setuptools python3-setuptools" makedepends="${hostmakedepends}" depends="python-setuptools" short_desc="C-Extensions for Python2" maintainer="Alessio Sergi " license="Apache-2.0" homepage="https://cython.org/" distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz" checksum=94916d1ede67682638d3cc0feb10648ff14dc51fb7a7f147f4fedce78eaaea97 alternatives=" cython:cygdb:/usr/bin/cygdb2 cython:cython:/usr/bin/cython2 cython:cythonize:/usr/bin/cythonize2" # Skip build phase, otherwise Cython gets confused when cross compiling do_build() { : } python3-Cython_package() { alternatives=" cython:cygdb:/usr/bin/cygdb3 cython:cython:/usr/bin/cython3 cython:cythonize:/usr/bin/cythonize3" pycompile_module="Cython pyximport cython.py" short_desc="${short_desc/Python2/Python3}" depends="python3-setuptools" pkg_install() { vmove usr/bin/*3 vmove usr/lib/python3* } }