# IT4Innovations 2020

easyblock = 'PythonPackage'

name = 'numpy'
version = '1.18.1'

homepage = 'http://www.numpy.org'
description = """NumPy is the fundamental package needed for scientific local_computing with Python."""

toolchain = {'name': 'Py', 'version': '3.7'}

source_urls = ['https://github.com/numpy/numpy/releases/download/v%(version)s']
sources = [SOURCE_TAR_GZ]

patch = [
    'numpy-1.8.1-mkl.patch',
    'numpy-1.11.0-sse42.patch'
]

dependencies = [
    ('mkl', '2019.5.281', '', True),
    ('Cython', '0.29.14'),
    ('libffi', '3.3', '', ('GCCcore', '8.3.0')), #RT#22207
]

sanity_check_paths = {'files': [], 'dirs': [
    'lib/python3.7/site-packages/%(name)s-%(version)s-py3.7-linux-x86_64.egg/numpy'], }

sanity_check_commands = [
    ('python', '-c "import numpy; assert(numpy.__version__ == \'%(version)s\')"')]

moduleclass = 'python'
