Skip to content
Snippets Groups Projects
Commit b8619862 authored by Felix Yan's avatar Felix Yan
Browse files

new version; rename executables

parent 5cb37bb4
No related branches found
No related tags found
No related merge requests found
......@@ -5,64 +5,62 @@
# Contributor: Peter Garceau <RockyChimp@gmail.com>
pkgbase=python-sympy
pkgname=('python2-sympy' 'python-sympy')
pkgver=1.0rc1
_commit=323d4a54eb94f6b79f32dd69779bf1952097def9
pkgname=('python-sympy' 'python2-sympy')
pkgver=1.0
pkgrel=1
arch=('any')
pkgdesc='Symbolic manipulation package (Computer Algebra System), written in pure Python'
url='http://sympy.org/en/index.html'
license=('BSD')
makedepends=('python2-mpmath' 'python-mpmath' 'python-setuptools' 'python2-setuptools' 'git')
#source=("git+https://github.com/sympy/sympy.git#tag=sympy-${pkgver}"
source=("git+https://github.com/sympy/sympy.git#commit=$_commit")
source=("git+https://github.com/sympy/sympy.git#tag=sympy-$pkgver")
sha512sums=('SKIP')
prepare() {
cp -a sympy py3-sympy
cp -a sympy{,-py2}
}
build() {
cd sympy
python2 setup.py build
cd "$srcdir"/sympy
python setup.py build
cd ../py3-sympy
python3 setup.py build
cd "$srcdir"/sympy-py2
python2 setup.py build
}
check() {
# Broken, waiting for upstream fixes.
cd sympy
python2 setup.py test || warning "Exit code: $?"
cd "$srcdir"/sympy
python setup.py test || warning "Exit code: $?"
cd ../py3-sympy
python3 setup.py test || warning "Exit code: $?"
cd "$srcdir"/sympy-py2
python2 setup.py test || warning "Exit code: $?"
}
package_python2-sympy() {
depends=('python2-mpmath')
optdepends=('python2-pyglet: plotting'
'ipython2: user friendly interface for isympy')
package_python-sympy() {
depends=('python-mpmath')
optdepends=('ipython: user friendly interface for isympy')
cd sympy
python2 setup.py install --root "${pkgdir}" --optimize=1
python setup.py install --root "$pkgdir" --optimize=1
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python-sympy() {
depends=('python-mpmath')
optdepends=('ipython: user friendly interface for isympy')
package_python2-sympy() {
depends=('python2-mpmath')
optdepends=('python2-pyglet: plotting'
'ipython2: user friendly interface for isympy')
cd py3-sympy
cd sympy-py2
python3 setup.py install --root "${pkgdir}" --optimize=1
python2 setup.py install --root "$pkgdir" --optimize=1
# rename files that exists in both 'python2-sympy' and 'python-sympy'
mv "${pkgdir}"/usr/bin/isympy{,-py3}
mv "${pkgdir}"/usr/share/man/man1/isympy{,-py3}.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
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment