# IT4Innovations 2021
# LK

easyblock = 'PythonBundle'

name = 'SciPy-bundle'
version = '2020.03'
versionsuffix = '-Python-3.8.6'

homepage = 'https://python.org/'
description = "Bundle of Python packages for scientific software"

toolchain = {'name': 'intel', 'version': '2020a'}
toolchainopts = {'pic': True, 'lowopt': True}

dependencies = [
    ('Python', '3.8.6'),
    ('pybind11', '2.4.3', versionsuffix),  # required by scipy
]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

# order is important!
exts_list = [
    ('numpy', '1.18.3', {
        'patches': ['numpy-1.18.2-mkl.patch'],
        'source_tmpl': '%(name)s-%(version)s.zip',
        'checksums': [
            'e46e2384209c91996d5ec16744234d1c906ab79a701ce1a26155c9ec890b8dc8',  # numpy-1.18.2.zip
            'ea25ad5c0148c1398d282f0424e642fb9815a1a80f4512659b018e2adc378bcf',  # numpy-1.18.2-mkl.patch
        ],
    }),
    ('scipy', '1.4.1', {
        'patches': ['scipy-1.4.1-fix-pthread.patch'],
        'checksums': [
            'dee1bbf3a6c8f73b6b218cb28eed8dd13347ea2f87d572ce19b289d6fd3fbc59',  # scipy-1.4.1.tar.gz
            '4e2162a93caddce63a1aa2dfb6c181774a4f6615950e1d60c54bb4308fee3bb3',  # scipy-1.4.1-fix-pthread.patch
        ],
    }),
    ('mpi4py', '3.0.3', {
        'checksums': ['012d716c8b9ed1e513fcc4b18e5af16a8791f51e6d1716baccf988ad355c5a1f'],
    }),
    ('pandas', '1.0.3', {
        'checksums': ['32f42e322fb903d0e189a4c10b75ba70d90958cc4f66a1781ed027f1a1d14586'],
    }),
    ('mpmath', '1.1.0', {
        'checksums': ['fc17abe05fbab3382b61a123c398508183406fa132e0223874578e20946499f6'],
    }),
    ('deap', '1.3.1', {
        'checksums': ['11f54493ceb54aae10dde676577ef59fc52d52f82729d5a12c90b0813c857a2f'],
    }),
]

sanity_pip_check = True

moduleclass = 'lang'
