spack/var/spack/repos/builtin/packages/py-sympy/package.py
Glenn Johnson c952c0ca16 Added version 1.0 of sympy. Beginning with this version, sympy requires
the mpmath package. The py-mpmath package is added in this PR to
accommodate that.
2016-04-02 15:50:20 -05:00

16 lines
521 B
Python

from spack import *
class PySympy(Package):
"""SymPy is a Python library for symbolic mathematics."""
homepage = "https://pypi.python.org/pypi/sympy"
url = "https://pypi.python.org/packages/source/s/sympy/sympy-0.7.6.tar.gz"
version('0.7.6', '3d04753974306d8a13830008e17babca')
version('1.0', '43e797de799f00f9e8fd2307dba9fab1')
extends('python')
depends_on('py-mpmath', when='@1.0:')
def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix)