python-Cython: split python3-Cython to a new package

This commit is contained in:
Michal Vasilek 2023-06-15 22:24:06 +02:00
parent 16530afcf8
commit 9966b9c63f
3 changed files with 36 additions and 16 deletions

View File

@ -2,11 +2,11 @@
pkgname=python-Cython
version=0.29.35
revision=1
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
build_style=python2-module
hostmakedepends="python-setuptools"
makedepends="python-devel"
depends="python-setuptools"
short_desc="C-Extensions for Python2"
short_desc="C-Extensions for Python3"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="Apache-2.0"
homepage="https://cython.org/"
@ -21,15 +21,8 @@ alternatives="
cython:cython:/usr/bin/cython2
cython:cythonize:/usr/bin/cythonize2"
python3-Cython_package() {
alternatives="
cython:cygdb:/usr/bin/cygdb3
cython:cython:/usr/bin/cython3
cython:cythonize:/usr/bin/cythonize3"
short_desc="${short_desc/Python2/Python3}"
depends="python3-setuptools"
pkg_install() {
vmove "usr/bin/*3"
vmove "usr/lib/python3*"
}
post_install() {
mv ${DESTDIR}/usr/bin/cygdb{,2}
mv ${DESTDIR}/usr/bin/cython{,2}
mv ${DESTDIR}/usr/bin/cythonize{,2}
}

View File

@ -1 +0,0 @@
python-Cython

View File

@ -0,0 +1,28 @@
# Template file for 'python3-Cython'
pkgname=python3-Cython
version=0.29.35
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
depends="python3-setuptools"
short_desc="C-Extensions for Python3"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="Apache-2.0"
homepage="https://cython.org/"
changelog="https://raw.githubusercontent.com/cython/cython/master/CHANGES.rst"
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
checksum=6e381fa0bf08b3c26ec2f616b19ae852c06f5750f4290118bf986b6f85c8c527
# Tests are flaky
make_check=no
alternatives="
cython:cygdb:/usr/bin/cygdb3
cython:cython:/usr/bin/cython3
cython:cythonize:/usr/bin/cythonize3"
post_install() {
mv ${DESTDIR}/usr/bin/cygdb{,3}
mv ${DESTDIR}/usr/bin/cython{,3}
mv ${DESTDIR}/usr/bin/cythonize{,3}
}