Date: Wednesday, January 1, 2020 @ 23:46:30 Author: arojas Revision: 545995
Drop python2 Modified: python-sympy/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++---------------------------------- 1 file changed, 6 insertions(+), 34 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-01-01 23:42:42 UTC (rev 545994) +++ PKGBUILD 2020-01-01 23:46:30 UTC (rev 545995) @@ -4,8 +4,7 @@ # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> # Contributor: Peter Garceau <[email protected]> -pkgbase=python-sympy -pkgname=('python-sympy' 'python2-sympy') +pkgname=python-sympy pkgver=1.5 pkgrel=1 arch=('any') @@ -12,34 +11,23 @@ pkgdesc='Symbolic manipulation package (Computer Algebra System), written in pure Python' url='https://sympy.org/en/index.html' license=('BSD') -makedepends=('python2-mpmath' 'python-mpmath' 'python-setuptools' 'python2-setuptools') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/sympy/sympy/archive/sympy-$pkgver.tar.gz") +depends=('python-mpmath') +optdepends=('ipython: user friendly interface for isympy') +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::https://github.com/sympy/sympy/archive/sympy-$pkgver.tar.gz") sha512sums=('6d205c61e3ee651c46408746c32af30336ae26b6bbbf49a304f1228149d0de0cbe6ec41b5cc55b0edc163b0e0e6e4db88d19216d29ad5c8e366e6f45ba81b45e') -prepare() { - cp -a sympy-sympy-$pkgver{,-py2} -} - build() { cd "$srcdir"/sympy-sympy-$pkgver python setup.py build - - cd "$srcdir"/sympy-sympy-$pkgver-py2 - python2 setup.py build } check() { cd "$srcdir"/sympy-sympy-$pkgver python setup.py test || warning "Tests failed" - - cd "$srcdir"/sympy-sympy-$pkgver-py2 - python2 setup.py test || warning "Tests failed" } -package_python-sympy() { - depends=('python-mpmath') - optdepends=('ipython: user friendly interface for isympy') - +package() { cd sympy-sympy-$pkgver python setup.py install --root "$pkgdir" --optimize=1 @@ -46,19 +34,3 @@ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-sympy() { - depends=('python2-mpmath') - optdepends=('python2-pyglet: plotting' - 'ipython2: user friendly interface for isympy') - - cd sympy-sympy-$pkgver-py2 - - python2 setup.py install --root "$pkgdir" --optimize=1 - - # rename files that exists in both 'python-sympy' and 'python2-sympy' - mv "$pkgdir"/usr/bin/isympy{,2} - mv "$pkgdir"/usr/share/man/man1/isympy{,2}.1 - - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -}
