Date: Monday, February 17, 2020 @ 17:48:24
  Author: archange
Revision: 574471

Drop python2 version

Modified:
  python-mpi4py/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-02-17 17:48:10 UTC (rev 574470)
+++ PKGBUILD    2020-02-17 17:48:24 UTC (rev 574471)
@@ -5,8 +5,7 @@
 # Contributor: Sebastien Binet <bi...@cern.ch>
 
 _pkg=mpi4py
-pkgbase=python-${_pkg}
-pkgname=(python-${_pkg} python2-${_pkg})
+pkgname=python-${_pkg}
 pkgver=3.0.3
 pkgrel=1
 pkgdesc="Python bindings for the Message Passing Interface (MPI) standard"
@@ -13,21 +12,15 @@
 arch=(x86_64)
 url="https://bitbucket.org/mpi4py/mpi4py";
 license=(BSD)
-makedepends=(python-setuptools python2-setuptools openmpi cython)
+depends=(python openmpi)
+makedepends=(python-setuptools cython)
 checkdepends=(inetutils)
-source=("https://files.pythonhosted.org/packages/source/m/${_pkg}/${_pkg}-${pkgver}.tar.gz";)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
 sha256sums=('012d716c8b9ed1e513fcc4b18e5af16a8791f51e6d1716baccf988ad355c5a1f')
 
-prepare() {
-    cp -a ${_pkg}-${pkgver}{,-py2}
-}
-
 build() {
     cd ${_pkg}-${pkgver}
     python setup.py build
-
-    cd ../${_pkg}-${pkgver}-py2
-    python2 setup.py build
 }
 
 check() {
@@ -37,23 +30,10 @@
 
     cd ${_pkg}-${pkgver}
     python setup.py test
-
-    cd ../${_pkg}-${pkgver}-py2
-    python2 setup.py test
 }
 
-package_python-mpi4py() {
-    depends=(python openmpi)
-
+package() {
     cd ${_pkg}-${pkgver}
     python setup.py install --root="${pkgdir}" --skip-build --optimize=1
     install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }
-
-package_python2-mpi4py() {
-    depends=(python2 openmpi)
-
-    cd ${_pkg}-${pkgver}-py2
-    python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
-    install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}

Reply via email to