mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
python-Cython: use alternatives
This commit is contained in:
parent
9e9dafffdd
commit
4740256807
1 changed files with 10 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Cython'
|
# Template file for 'python-Cython'
|
||||||
pkgname=python-Cython
|
pkgname=python-Cython
|
||||||
version=0.24
|
version=0.24
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="Cython-${version}"
|
wrksrc="Cython-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
|
@ -15,19 +15,21 @@ license="Apache-2.0"
|
||||||
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
|
||||||
checksum=6de44d8c482128efc12334641347a9c3e5098d807dd3c69e867fa8f84ec2a3f1
|
checksum=6de44d8c482128efc12334641347a9c3e5098d807dd3c69e867fa8f84ec2a3f1
|
||||||
|
|
||||||
|
alternatives="
|
||||||
|
cython:cygdb:/usr/bin/cygdb2.7
|
||||||
|
cython:cython:/usr/bin/cython2.7
|
||||||
|
cython:cythonize:/usr/bin/cythonize2.7"
|
||||||
|
|
||||||
# Skip build phase, otherwise Cython gets confused when cross compiling
|
# Skip build phase, otherwise Cython gets confused when cross compiling
|
||||||
do_build() {
|
do_build() {
|
||||||
:
|
:
|
||||||
}
|
}
|
||||||
post_install() {
|
|
||||||
rm -f ${DESTDIR}/usr/bin/*
|
|
||||||
for f in cygdb cython cythonize; do
|
|
||||||
vbin build-2.7/scripts-2.7/${f}
|
|
||||||
vbin build-3.4/scripts-3.4/${f} ${f}3.4
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
python3.4-Cython_package() {
|
python3.4-Cython_package() {
|
||||||
|
alternatives="
|
||||||
|
cython:cygdb:/usr/bin/cygdb3.4
|
||||||
|
cython:cython:/usr/bin/cython3.4
|
||||||
|
cython:cythonize:/usr/bin/cythonize3.4"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="Cython pyximport cython.py"
|
pycompile_module="Cython pyximport cython.py"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue