python-tables: don't build with -march=native
While I'm here: - add missing bdeps - install bin scripts
This commit is contained in:
parent
ee1d97a742
commit
fef884fa0d
@ -1,19 +0,0 @@
|
|||||||
--- setup.py 2015-09-22 05:02:05.000000000 +0200
|
|
||||||
+++ setup.py_ 2015-12-13 10:42:06.578872182 +0100
|
|
||||||
@@ -685,16 +685,6 @@
|
|
||||||
setuptools_kwargs['install_requires'] = requirements
|
|
||||||
# Detect packages automatically.
|
|
||||||
setuptools_kwargs['packages'] = find_packages(exclude=['*.bench'])
|
|
||||||
-# Entry points for automatic creation of scripts.
|
|
||||||
-setuptools_kwargs['entry_points'] = {
|
|
||||||
- 'console_scripts': [
|
|
||||||
- 'ptdump = tables.scripts.ptdump:main',
|
|
||||||
- 'ptrepack = tables.scripts.ptrepack:main',
|
|
||||||
- 'pt2to3 = tables.scripts.pt2to3:main',
|
|
||||||
- 'pttree = tables.scripts.pttree:main',
|
|
||||||
- ],
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
# Test suites.
|
|
||||||
setuptools_kwargs['test_suite'] = 'tables.tests.test_all.suite'
|
|
||||||
setuptools_kwargs['scripts'] = []
|
|
@ -1,23 +1,32 @@
|
|||||||
# Template file for 'python-tables'
|
# Template file for 'python-tables'
|
||||||
pkgname=python-tables
|
pkgname=python-tables
|
||||||
version=3.2.2
|
version=3.2.2
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname#*-}-${version}"
|
wrksrc="${pkgname#*-}-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
pycompile_module="tables"
|
pycompile_module="tables"
|
||||||
|
# XXX: c-blosc (using internal for now)
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
makedepends="python-devel python3.4-devel python-numpy python3.4-numpy
|
makedepends="python-devel python3.4-devel python-numpy python3.4-numpy
|
||||||
python-Cython python3.4-Cython hdf5-devel"
|
python-Cython python3.4-Cython hdf5-devel lzo-devel bzip2-devel"
|
||||||
depends="python-numpy python-numexpr"
|
depends="python-numpy python-numexpr"
|
||||||
short_desc="Hierarchical datasets for Python2"
|
short_desc="Hierarchical datasets for Python2"
|
||||||
maintainer="pulux <pulux@pf4sh.de>"
|
maintainer="pulux <pulux@pf4sh.de>"
|
||||||
license="BSD"
|
license="3-clause-BSD"
|
||||||
homepage="http://www.pytables.org/"
|
homepage="http://www.pytables.org/"
|
||||||
distfiles="${PYPI_SITE}/t/tables/tables-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/t/tables/tables-${version}.tar.gz"
|
||||||
checksum=3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84
|
checksum=3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# don't build with -march=native
|
||||||
|
sed -i 's|"-march=native", ||' setup.py
|
||||||
|
}
|
||||||
post_install() {
|
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
|
vlicense LICENSE.txt LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,6 +36,7 @@ python3.4-tables_package() {
|
|||||||
depends="python3.4-numpy python3.4-numexpr"
|
depends="python3.4-numpy python3.4-numexpr"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/bin/*3.4
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vlicense LICENSE.txt LICENSE
|
vlicense LICENSE.txt LICENSE
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user