Fix BSC EasyBuild due to numpy and matplotlib
Hello @dbeltran logging this just in case we have another issue like this in the future.
We have an EasyConfig for EasyBuild used within the BSC for Autosubmit:
# File: autosubmit-4.1.2-foss-2021b-Python-3.9.6.eb
easyblock = "PythonPackage"
name = 'autosubmit'
version = '4.1.2'
homepage = 'http://autosubmit.readthedocs.org'
description = """A versatile tool for managing ESM on HPC platforms"""
toolchain = {'name': 'foss', 'version': '2021b'}
#sources = [SOURCELOWER_TAR_GZ]
#source_urls = ['https://pypi.python.org/packages/source/a/autosubmit']
sources = ['autosubmit-4.1.2.tar.gz']
python = 'Python'
pyver = '3.9.6'
pyshortver = '3.6'
versionsuffix = '-%s-%s' % (python, pyver)
dependencies = [
(python, pyver),
('libpng','1.6.37'),
]
#use_pip = True
# override extensions sanity check, default filter that imports a Python module doesn't work here
exts_filter = ('', "")
sanity_check_paths = {
'files': ['bin/autosubmit'],
'dirs': [],
}
#sanity_check_commands = [('autosubmit -v','')]
moduleclass = 'tools'
Rebuilding it today at the BSC fails as EasyBuild's eb
seems to pick any numpy greater than 1.26, as in our version range specification. However, different than pip
that ignores alpha/beta by default, EasyBuild finds the Numpy2 beta release and tries to use it.
@dbeltran found this issue as Matplotlib fails to install due to numpy2 breaking changes.