Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{vis}[foss/2020b,intel/2020b] matplotlib v3.5.1 w/ Python 3.8.6 #15095

Merged
merged 3 commits into from
Mar 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions easybuild/easyconfigs/m/matplotlib/matplotlib-3.5.1-foss-2020b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
easyblock = 'PythonBundle'

name = 'matplotlib'
version = '3.5.1'

homepage = 'https://matplotlib.org'
description = """matplotlib is a python 2D plotting library which produces publication quality figures in a variety of
hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python
and ipython shell, web application servers, and six graphical user interface toolkits."""

toolchain = {'name': 'foss', 'version': '2020b'}

builddependencies = [
('pkg-config', '0.29.2'),
]

dependencies = [
('Python', '3.8.6'),
('SciPy-bundle', '2020.11'),
('libpng', '1.6.37'),
('freetype', '2.10.3'),
('Tkinter', '%(pyver)s'),
('Pillow', '8.0.1'),
('Qhull', '2020.2')
]
boegel marked this conversation as resolved.
Show resolved Hide resolved

use_pip = True
sanity_pip_check = True

# avoid that matplotlib downloads and builds its own copies of freetype and qhull
casparvl marked this conversation as resolved.
Show resolved Hide resolved
_fix_setup = "sed -e 's/#system_freetype = False/system_freetype = True/g' "
_fix_setup += "-e 's/#system_qhull = False/system_qhull = True/g' mplsetup.cfg.template > mplsetup.cfg && "


_include_path = "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && "

exts_list = [
('Cycler', '0.10.0', {
'modulename': 'cycler',
'source_tmpl': 'cycler-%(version)s.tar.gz',
'checksums': ['cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8'],
}),
('kiwisolver', '1.3.0', {
'checksums': ['14f81644e1f3bf01fbc8b9c990a7889e9bb4400c4d0ff9155aa0bdd19cce24a9'],
}),
('fontTools', '4.29.1', {
'modulename': 'fontTools',
'source_tmpl': 'fonttools-%(version)s.zip',
'checksums': ['2b18a172120e32128a80efee04cff487d5d140fe7d817deb648b2eee023a40e4'],
}),
(name, version, {
'preinstallopts': _fix_setup + _include_path,
casparvl marked this conversation as resolved.
Show resolved Hide resolved
'checksums': ['b2e9810e09c3a47b73ce9cab5a72243a1258f61e7900969097a817232246ce1c'],
}),
]

sanity_check_commands = [
"""python -c 'import matplotlib; matplotlib.use("Agg"); import matplotlib.pyplot' """,
"python -c 'from mpl_toolkits.mplot3d import Axes3D'",
]

# use non-interactive plotting backend as default
# see https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend
modextravars = {'MPLBACKEND': 'Agg'}

moduleclass = 'vis'
66 changes: 66 additions & 0 deletions easybuild/easyconfigs/m/matplotlib/matplotlib-3.5.1-intel-2020b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
easyblock = 'PythonBundle'

name = 'matplotlib'
version = '3.5.1'

homepage = 'https://matplotlib.org'
description = """matplotlib is a python 2D plotting library which produces publication quality figures in a variety of
hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python
and ipython shell, web application servers, and six graphical user interface toolkits."""

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

builddependencies = [
('pkg-config', '0.29.2'),
]

dependencies = [
('Python', '3.8.6'),
('SciPy-bundle', '2020.11'),
('libpng', '1.6.37'),
('freetype', '2.10.3'),
('Tkinter', '%(pyver)s'),
('Pillow', '8.0.1'),
('Qhull', '2020.2')
]

use_pip = True
sanity_pip_check = True

# avoid that matplotlib downloads and builds its own copies of freetype and qhull
_fix_setup = "sed -e 's/#system_freetype = False/system_freetype = True/g' "
_fix_setup += "-e 's/#system_qhull = False/system_qhull = True/g' mplsetup.cfg.template > mplsetup.cfg && "


_include_path = "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && "

exts_list = [
('Cycler', '0.10.0', {
'modulename': 'cycler',
'source_tmpl': 'cycler-%(version)s.tar.gz',
'checksums': ['cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8'],
}),
('kiwisolver', '1.3.0', {
'checksums': ['14f81644e1f3bf01fbc8b9c990a7889e9bb4400c4d0ff9155aa0bdd19cce24a9'],
}),
('fontTools', '4.29.1', {
'modulename': 'fontTools',
'source_tmpl': 'fonttools-%(version)s.zip',
'checksums': ['2b18a172120e32128a80efee04cff487d5d140fe7d817deb648b2eee023a40e4'],
}),
(name, version, {
'preinstallopts': _fix_setup + _include_path,
'checksums': ['b2e9810e09c3a47b73ce9cab5a72243a1258f61e7900969097a817232246ce1c'],
}),
]

sanity_check_commands = [
"""python -c 'import matplotlib; matplotlib.use("Agg"); import matplotlib.pyplot' """,
"python -c 'from mpl_toolkits.mplot3d import Axes3D'",
]

# use non-interactive plotting backend as default
# see https://matplotlib.org/tutorials/introductory/usage.html#what-is-a-backend
modextravars = {'MPLBACKEND': 'Agg'}

moduleclass = 'vis'