[arch-commits] Commit in python-h5py/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Mon Feb 17 17:50:21 UTC 2020
Date: Monday, February 17, 2020 @ 17:50:21
Author: archange
Revision: 574473
Drop python2 version
Modified:
python-h5py/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++--------------------------
1 file changed, 5 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-17 17:50:08 UTC (rev 574472)
+++ PKGBUILD 2020-02-17 17:50:21 UTC (rev 574473)
@@ -5,8 +5,7 @@
# Contributor: Sebastien Binet <binet at lblbox>
_pkg=h5py
-pkgbase=python-${_pkg}
-pkgname=(python-${_pkg} python2-${_pkg})
+pkgname=python-${_pkg}
pkgver=2.10.0
pkgrel=2
pkgdesc="General-purpose Python bindings for the HDF5 library"
@@ -13,10 +12,9 @@
arch=(x86_64)
url="https://www.h5py.org/"
license=(BSD)
-depends=(hdf5)
-makedepends=(cython cython2 python-numpy python2-numpy python-six python2-six
- python-pkgconfig python2-pkgconfig)
-checkdepends=(python-pytest python2-pytest python2-unittest2)
+depends=(hdf5 python-numpy python-six)
+makedepends=(cython python-pkgconfig)
+checkdepends=(python-pytest)
conflicts=(hdf5-openmpi)
source=(https://files.pythonhosted.org/packages/source/h/${_pkg}/${_pkg}-${pkgver}.tar.gz)
sha256sums=('84412798925dc870ffd7107f045d7659e60f5d46d1c70c700375248bf6bf512d')
@@ -27,40 +25,21 @@
prepare() {
# Remove RPATH
sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" ${_pkg}-${pkgver}/setup_build.py
- cp -a ${_pkg}-${pkgver}{,-py2}
}
build() {
cd ${_pkg}-${pkgver}
python setup.py build
-
- cd ../${_pkg}-${pkgver}-py2
- python2 setup.py build
}
check() {
cd ${_pkg}-${pkgver}
python setup.py test
-
- cd ../${_pkg}-${pkgver}-py2
- # https://github.com/h5py/h5py/issues/1435
- python2 setup.py test || warning "Tests failed"
}
-package_python-h5py() {
- depends+=(python-numpy python-six)
-
+package() {
cd ${_pkg}-${pkgver}
python setup.py install --root="${pkgdir}" --skip-build --optimize=1
install -Dm644 licenses/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
-
-package_python2-h5py() {
- depends+=(python2-numpy python2-six)
-
- cd ${_pkg}-${pkgver}-py2
- python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
-
- install -Dm644 licenses/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}
More information about the arch-commits
mailing list