python-tables: use alternatives
This commit is contained in:
parent
3ac5e11845
commit
61d20fcde0
|
@ -10,7 +10,7 @@ pycompile_module="tables"
|
|||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
makedepends="python-devel python3.4-devel python-numpy python3.4-numpy
|
||||
python-Cython python3.4-Cython hdf5-devel lzo-devel bzip2-devel"
|
||||
depends="python-numpy python-numexpr"
|
||||
depends="python-setuptools python-numpy python-numexpr"
|
||||
short_desc="Hierarchical datasets for Python2"
|
||||
maintainer="pulux <pulux@pf4sh.de>"
|
||||
license="3-clause-BSD"
|
||||
|
@ -18,22 +18,29 @@ homepage="http://www.pytables.org/"
|
|||
distfiles="${PYPI_SITE}/t/tables/tables-${version}.tar.gz"
|
||||
checksum=3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84
|
||||
|
||||
alternatives="
|
||||
tables:pt2to3:/usr/bin/pt2to32.7
|
||||
tables:ptdump:/usr/bin/ptdump2.7
|
||||
tables:ptrepack:/usr/bin/ptrepack2.7
|
||||
tables:pttree:/usr/bin/pttree2.7"
|
||||
|
||||
pre_build() {
|
||||
# don't build with -march=native
|
||||
sed -i 's|"-march=native", ||' setup.py
|
||||
}
|
||||
post_install() {
|
||||
for f in pt2to3 ptdump ptrepack pttree; do
|
||||
cp -f ${DESTDIR}/usr/bin/${f}{,3.4}
|
||||
replace_interpreter python ${DESTDIR}/usr/bin/${f}
|
||||
done
|
||||
vlicense LICENSE.txt LICENSE
|
||||
}
|
||||
|
||||
python3.4-tables_package() {
|
||||
alternatives="
|
||||
tables:pt2to3:/usr/bin/pt2to33.4
|
||||
tables:ptdump:/usr/bin/ptdump3.4
|
||||
tables:ptrepack:/usr/bin/ptrepack3.4
|
||||
tables:pttree:/usr/bin/pttree3.4"
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="tables"
|
||||
depends="python3.4-numpy python3.4-numexpr"
|
||||
depends="python3.4-setuptools python3.4-numpy python3.4-numexpr"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pkg_install() {
|
||||
vmove usr/bin/*3.4
|
||||
|
|
Loading…
Reference in New Issue