Date: Monday, June 10, 2013 @ 11:12:31 Author: aginiewicz Revision: 92632
updatepkg, added py3 support Added: python-pytables/ Modified: python-pytables/trunk/PKGBUILD Deleted: python2-pytables/ ----------+ PKGBUILD | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) Modified: python-pytables/trunk/PKGBUILD =================================================================== --- python2-pytables/trunk/PKGBUILD 2013-06-10 08:22:55 UTC (rev 92627) +++ python-pytables/trunk/PKGBUILD 2013-06-10 09:12:31 UTC (rev 92632) @@ -2,28 +2,46 @@ # Maintainer: Andrzej Giniewicz <[email protected]> # Contributor: Sebastien Binet <[email protected]> -pkgname=python2-pytables -pkgver=2.4.0 -pkgrel=3 +pkgbase=python-pytables +pkgname=('python2-pytables' 'python-pytables') +pkgver=3.0.0 +pkgrel=1 arch=("i686" "x86_64") -pkgdesc="PyTables is a package for managing hierarchical datasets and designed to efficiently and easily cope with extremely large amounts of data" +pkgdesc="A package for managing hierarchical datasets and designed to efficiently and easily cope with extremely large amounts of data" url="http://www.pytables.org" license=("BSD") -depends=('lzo2' 'hdf5' 'python2-numexpr' 'cython2') -provides=('python-pytables') # temporary due to package rename -replaces=('python-pytables') # (there is no python 3 version yet) +makedepends=('lzo2' 'hdf5' 'python2-numexpr' 'cython2' 'python-numexpr' 'cython') source=("http://pypi.python.org/packages/source/t/tables/tables-$pkgver.tar.gz") -md5sums=('527ad046f92c9197ca96626b725f71f8') +md5sums=('9c8a18d51be5e94a2ae50ea31d26f8c2') build() { - cd "$srcdir"/tables-${pkgver} + cd "$srcdir" + cp -a tables-$pkgver tables-py2-$pkgver + + msg "Building Python2" + cd "$srcdir"/tables-py2-$pkgver python2 setup.py build + + msg "Building Python3" + cd "$srcdir"/tables-$pkgver + python setup.py build } -package() { - cd "$srcdir"/tables-${pkgver} +package_python2-pytables() { + depends=('lzo2' 'hdf5' 'python2-numexpr' 'cython2') + + cd "$srcdir"/tables-py2-${pkgver} python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } +package_python-pytables() { + depends=('lzo2' 'hdf5' 'python-numexpr' 'cython') + + cd "$srcdir"/tables-${pkgver} + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} +
