Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
easyblock = 'PythonBundle'

name = 'matplotlib'
version = '2.2.5'
versionsuffix = '-Python-%(pyver)s'

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': '2023a'}

builddependencies = [
('pkgconf', '1.9.5'),
]

dependencies = [
('Python', '2.7.18'),
('SciPy-bundle', '2024.06', versionsuffix),
('libpng', '1.6.39'),
('freetype', '2.13.0'),
('Tkinter', '%(pyver)s', versionsuffix),
]

use_pip = True
sanity_pip_check = True

exts_list = [
('Cycler', '0.10.0', {
'modulename': 'cycler',
'source_tmpl': 'cycler-%(version)s.tar.gz',
'checksums': ['cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8'],
}),
('kiwisolver', '1.1.0', {
'checksums': ['53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75'],
}),
('subprocess32', '3.5.4', {
'checksums': ['eb2937c80497978d181efa1b839ec2d9622cf9600a039a79d0e108d1f9aec79d'],
}),
(name, version, {
'prebuildopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ",
'preinstallopts': "export CPLUS_INCLUDE_PATH=$EBROOTFREETYPE/include/freetype2:${CPLUS_INCLUDE_PATH} && ",
'checksums': ['a3037a840cd9dfdc2df9fee8af8f76ca82bfab173c0f9468193ca7a89a2b60ea'],
}),
]

postinstallcmds = [
'touch %(installdir)s/lib/python%(pyshortver)s/site-packages/mpl_toolkits/__init__.py',
]

sanity_check_commands = [
"""python -c 'import matplotlib; matplotlib.use("TkAgg"); 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'
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name = 'Tkinter'
version = '2.7.18'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://python.org/'
description = """Tkinter module, built with the Python buildsystem"""

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}
toolchainopts = {'pic': True}

source_urls = ['https://www.python.org/ftp/python/%(version)s/']
sources = ['Python-%(version)s.tgz']
checksums = ['da3080e3b488f648a3d7a4560ddee895284c3380b11d6de75edb986526b9a814']

builddependencies = [('binutils', '2.40')]

dependencies = [
('Python', version),
('Tk', '8.6.13'),
('zlib', '1.2.13'),
('bzip2', '1.0.8'),
('libreadline', '8.2'),
]

moduleclass = 'lang'
Loading