Skip to content

Commit

Permalink
add WIP eaysconfig for sympy with intel/2021b + intel/2022a (#79), te…
Browse files Browse the repository at this point in the history
…sts fail with weird MKL error
  • Loading branch information
boegel committed Jan 18, 2023
1 parent 6556bfa commit 947222e
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 79_sympy/gmpy2-2.1.2-intel-compilers-2021.4.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
easyblock = 'PythonPackage'

name = 'gmpy2'
version = '2.1.2'

homepage = 'https://github.com/aleaxit/gmpy'
description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x"

toolchain = {'name': 'intel-compilers', 'version': '2021.4.0'}

sources = [SOURCE_TAR_GZ]
checksums = ['da75140bca128ece795895477e53b43773e3748aa90ba6170eae7ca2c74b82d1']

dependencies = [
('Python', '3.9.6'),
('GMP', '6.2.1'),
('MPFR', '4.1.0'),
('MPC', '1.2.1'),
]

use_pip = True
download_dep_fail = True
sanity_pip_check = True

moduleclass = 'math'
25 changes: 25 additions & 0 deletions 79_sympy/gmpy2-2.1.2-intel-compilers-2022.1.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
easyblock = 'PythonPackage'

name = 'gmpy2'
version = '2.1.2'

homepage = 'https://github.com/aleaxit/gmpy'
description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x"

toolchain = {'name': 'intel-compilers', 'version': '2022.1.0'}

sources = [SOURCE_TAR_GZ]
checksums = ['da75140bca128ece795895477e53b43773e3748aa90ba6170eae7ca2c74b82d1']

dependencies = [
('Python', '3.10.4'),
('GMP', '6.2.1'),
('MPFR', '4.1.0'),
('MPC', '1.2.1'),
]

use_pip = True
download_dep_fail = True
sanity_pip_check = True

moduleclass = 'math'
37 changes: 37 additions & 0 deletions 79_sympy/sympy-1.11.1-intel-2022a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
easyblock = 'PythonPackage'

name = 'sympy'
version = '1.11.1'

homepage = 'https://sympy.org/'
description = """SymPy is a Python library for symbolic mathematics. It aims to
become a full-featured computer algebra system (CAS) while keeping the code as
simple as possible in order to be comprehensible and easily extensible. SymPy
is written entirely in Python and does not require any external libraries."""

toolchain = {'name': 'intel', 'version': '2022a'}

sources = [SOURCE_TAR_GZ]
checksums = ['e32380dce63cb7c0108ed525570092fd45168bdae2faa17e528221ef72e88658']

dependencies = [
('Python', '3.10.4'),
('SciPy-bundle', '2022.05'),
('gmpy2', '2.1.2'),
]

download_dep_fail = True
use_pip = True

runtest = 'python setup.py test'

sanity_pip_check = True

sanity_check_paths = {
'files': ['bin/isympy'],
'dirs': ['lib/python%(pyshortver)s/site-packages/sympy'],
}

sanity_check_commands = ["isympy --help"]

moduleclass = 'math'
43 changes: 43 additions & 0 deletions 79_sympy/sympy-1.9-intel-2021b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
easyblock = 'PythonPackage'

name = 'sympy'
version = '1.9'

homepage = 'https://sympy.org/'
description = """SymPy is a Python library for symbolic mathematics. It aims to
become a full-featured computer algebra system (CAS) while keeping the code as
simple as possible in order to be comprehensible and easily extensible. SymPy
is written entirely in Python and does not require any external libraries."""

toolchain = {'name': 'intel', 'version': '2021b'}

sources = [SOURCE_TAR_GZ]
checksums = ['c7a880e229df96759f955d4f3970d4cabce79f60f5b18830c08b90ce77cd5fdc']

dependencies = [
('Python', '3.9.6'),
('SciPy-bundle', '2021.10'),
('gmpy2', '2.1.2'),
]

download_dep_fail = True
use_pip = True

# fix broken test, sympy doesn't actually use gmpy2's Decimal anywhere;
# see https://github.com/sympy/sympy/issues/23061#issuecomment-1052424896
#pretestopts = """sed -i "s@Decimal('0.6')@'0.6'@g" sympy/external/tests/test_pythonmpq.py && """
#runtest = 'python setup.py test'

sanity_pip_check = True

sanity_check_paths = {
'files': ['bin/isympy'],
'dirs': ['lib/python%(pyshortver)s/site-packages/sympy'],
}

sanity_check_commands = [
"isympy --help",
"python -c 'import sympy; sympy.test()'",
]

moduleclass = 'math'

0 comments on commit 947222e

Please sign in to comment.