Skip to content
Snippets Groups Projects
Commit c952c0ca authored by Glenn Johnson's avatar Glenn Johnson
Browse files

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.
parent f5a77d39
No related branches found
No related tags found
No related merge requests found
from spack import *
class PyMpmath(Package):
"""A Python library for arbitrary-precision floating-point arithmetic."""
homepage = "http://mpmath.org"
url = "https://pypi.python.org/packages/source/m/mpmath/mpmath-all-0.19.tar.gz"
version('0.19', 'd1b7e19dd6830d0d7b5e1bc93d46c02c')
extends('python')
def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix)
...@@ -6,8 +6,10 @@ class PySympy(Package): ...@@ -6,8 +6,10 @@ class PySympy(Package):
url = "https://pypi.python.org/packages/source/s/sympy/sympy-0.7.6.tar.gz" url = "https://pypi.python.org/packages/source/s/sympy/sympy-0.7.6.tar.gz"
version('0.7.6', '3d04753974306d8a13830008e17babca') version('0.7.6', '3d04753974306d8a13830008e17babca')
version('1.0', '43e797de799f00f9e8fd2307dba9fab1')
extends('python') extends('python')
depends_on('py-mpmath', when='@1.0:')
def install(self, spec, prefix): def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix) python('setup.py', 'install', '--prefix=%s' % prefix)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment