[arch-commits] Commit in python-pytables/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Sat Mar 16 21:02:38 UTC 2019
Date: Saturday, March 16, 2019 @ 21:02:38
Author: archange
Revision: 442243
Small PKGBUILD cleaning
Modified:
python-pytables/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-16 20:54:59 UTC (rev 442242)
+++ PKGBUILD 2019-03-16 21:02:38 UTC (rev 442243)
@@ -11,23 +11,20 @@
url="https://www.pytables.org"
license=("BSD")
makedepends=('lzo' 'hdf5' 'python2-numexpr' 'python-numexpr' 'python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'blosc' 'bzip2')
-source=(${pkgbase}-${pkgver}::"https://github.com/PyTables/PyTables/archive/v${pkgver}.tar.gz")
+source=(${pkgbase}-${pkgver}.tar.gz::"https://github.com/PyTables/PyTables/archive/v${pkgver}.tar.gz")
sha256sums=('fda2e5071ce064ae1e808623e4c6166e6ab5f0f6152043991c5151d4e2622f2e')
prepare() {
- cd "$srcdir"/PyTables-$pkgver
-
- cd "${srcdir}"
cp -a PyTables-$pkgver PyTables-py2-$pkgver
}
build() {
# "Building Python2"
- cd "$srcdir"/PyTables-py2-$pkgver
+ cd PyTables-py2-$pkgver
python2 setup.py build --blosc=/usr --lzo=/usr --hdf5=/usr --bzip2=/usr
# "Building Python3"
- cd "$srcdir"/PyTables-$pkgver
+ cd ../PyTables-$pkgver
python setup.py build --blosc=/usr --lzo=/usr --hdf5=/usr --bzip2=/usr
}
@@ -34,10 +31,10 @@
package_python2-pytables() {
depends=('lzo' 'hdf5' 'python2-numexpr' 'blosc')
- cd "$srcdir"/PyTables-py2-${pkgver}
+ cd PyTables-py2-$pkgver
python2 setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
# see FS#36015 and FS#44971
mv "$pkgdir"/usr/bin/pt2to3{,-2.7}
@@ -54,10 +51,10 @@
package_python-pytables() {
depends=('lzo' 'hdf5' 'python-numexpr' 'blosc')
- cd "$srcdir"/PyTables-${pkgver}
+ cd PyTables-${pkgver}
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
# see FS#45975
_site_packages=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
More information about the arch-commits
mailing list