mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-08 07:52:11 +01:00

new file: a/ant/ant-1.10.7-Java-13.0.1.eb new file: a/at-spi2-atk/at-spi2-atk-2.34.1.eb new file: a/at-spi2-core/at-spi2-core-2.34.0.eb modified: c/cairo/cairo-1.17.2.eb new file: f/FFmpeg/FFmpeg-4.2.2.eb new file: f/FriBidi/FriBidi-1.0.9.eb new file: f/fontconfig/fontconfig-2.12.6.eb modified: f/fontconfig/fontconfig-2.13.1.eb new file: f/freetype/freetype-2.10.1.eb new file: g/GLib/GLib-2.64.0.eb new file: g/GObject-Introspection/GObject-Introspection-1.63.1-Py-3.7.eb new file: g/GTK+/GTK+-3.24.13.eb new file: g/Gdk-Pixbuf/Gdk-Pixbuf-2.38.2.eb new file: h/HarfBuzz/HarfBuzz-2.6.4.eb new file: i/ICU/ICU-64.2.eb new file: l/LibTIFF/LibTIFF-4.1.0.eb new file: l/libepoxy/libepoxy-1.5.4.eb new file: l/libjpeg-turbo/libjpeg-turbo-2.0.4.eb new file: o/OpenCV/OpenCV-3.4.7-intel-2020a-Py-3.7.eb new file: o/OpenCV/OpenCV-4.2.0-Py-3.7.eb new file: p/Pango/Pango-1.44.7.eb new file: v/VTK/VTK-8.2.0-foss-2019b-Python-3.7.4.eb modified: v/VTK/VTK-8.2.0-intel-2020a-Py-3.7.eb new file: "v/VTK/\\" modified: x/X11/X11-20190717.eb
91 lines
3.4 KiB
Plaintext
91 lines
3.4 KiB
Plaintext
# IT4Innovations 2020
|
|
|
|
easyblock = 'CMakeMake'
|
|
|
|
name = 'VTK'
|
|
version = '8.2.0'
|
|
versionsuffix = '-Py-3.7'
|
|
|
|
homepage = 'https://www.vtk.org'
|
|
description = """The Visualization Toolkit (VTK) is an open-source, freely available software system for
|
|
3D computer graphics, image processing and visualization. VTK consists of a C++ class library and several
|
|
interpreted interface layers including Tcl/Tk, Java, and Python. VTK supports a wide variety of visualization
|
|
algorithms including: scalar, vector, tensor, texture, and volumetric methods; and advanced modeling techniques
|
|
such as: implicit modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay triangulation."""
|
|
|
|
toolchain = {'name': 'intel', 'version': '2020a'}
|
|
toolchainopts = {'usempi': True}
|
|
|
|
source_urls = ['https://www.vtk.org/files/release/%(version_major_minor)s']
|
|
sources = [
|
|
SOURCE_TAR_GZ,
|
|
'%(name)sData-%(version)s.tar.gz',
|
|
]
|
|
patches = [('vtk-version.egg-info', '.')]
|
|
checksums = [
|
|
'34c3dc775261be5e45a8049155f7228b6bd668106c72a3c435d95730d17d57bb', # VTK-8.2.0.tar.gz
|
|
'd1ff312f7a63d90d8b7033a99109801f16a462ae411d648642838aae04bcc21e', # VTKData-8.2.0.tar.gz
|
|
'787b82415ae7a4a1f815b4db0e25f7abc809a05fc85d7d219627f3a7e5d3867b', # vtk-version.egg-info
|
|
]
|
|
|
|
builddependencies = [('CMake', '3.16.2', '', True)]
|
|
|
|
dependencies = [
|
|
('Py', '3.7', '', True),
|
|
('XZ', '5.2.4'),
|
|
('HDF5', '1.10.6'),
|
|
('netCDF', '4.7.3'),
|
|
('libGLU', '9.0.0', '', True),
|
|
('X11', '20190717', '', True),
|
|
('pandas', '1.0.0', versionsuffix, True),
|
|
('numpy', '1.18.1', versionsuffix, True),
|
|
('scipy', '1.3.3', versionsuffix, True),
|
|
('mpi4py', '3.0.1', versionsuffix),
|
|
]
|
|
|
|
separate_build_dir = True
|
|
|
|
# Third party modules
|
|
configopts = "-DVTK_USE_SYSTEM_MPI4PY=ON "
|
|
configopts += "-DVTK_USE_SYSTEM_LZMA=ON "
|
|
configopts += "-DVTK_USE_SYSTEM_HDF5=ON "
|
|
configopts += "-DVTK_USE_SYSTEM_NETCDF=ON "
|
|
# OpenGL
|
|
configopts += "-DOPENGL_glu_LIBRARY=$EBROOTLIBGLU/lib/libGLU.%s " % SHLIB_EXT
|
|
configopts += "-DOPENGL_gl_LIBRARY=$EBROOTMESA/lib/libGL.%s " % SHLIB_EXT
|
|
configopts += "-DOPENGL_INCLUDE_DIR=$EBROOTMESA/include "
|
|
# Python
|
|
configopts += "-DVTK_WRAP_PYTHON=ON "
|
|
configopts += "-DVTK_PYTHON_VERSION=3.7 "
|
|
configopts += "-DPYTHON_INCLUDE_DIR=$EBROOTPYTHON/include/python3.7m "
|
|
configopts += "-DPYTHON_LIBRARY=$EBROOTPYTHON/lib/libpython3.7m.%s " % SHLIB_EXT
|
|
# Other
|
|
configopts += "-DVTK_Group_MPI:BOOL=ON "
|
|
configopts += "-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
preinstallopts = "export PYTHONPATH=%(installdir)s/lib/python3.7/site-packages:$PYTHONPATH && "
|
|
|
|
# Install a egg-info file so VTK is more python friendly, required for mayavi
|
|
local_egg_info_src = '%(builddir)s/VTK-%(version)s/vtk-version.egg-info'
|
|
local_egg_info_dest = '%(installdir)s/lib/python3.7/site-packages/vtk-%(version)s.egg-info'
|
|
postinstallcmds = [
|
|
'sed "s/#VTK_VERSION#/%%(version)s/" %s > %s' % (local_egg_info_src, local_egg_info_dest),
|
|
]
|
|
|
|
modextrapaths = {'PYTHONPATH': ['lib/python3.7/site-packages']}
|
|
|
|
sanity_check_paths = {
|
|
'files': ['bin/vtk%s-%%(version_major_minor)s' % x for x in
|
|
['WrapJava', 'ParseJava', 'WrapPythonInit', 'WrapPython', 'WrapHierarchy']] +
|
|
['bin/pvtkpython', 'bin/vtkpython'],
|
|
'dirs': ['lib/python3.7/site-packages/', 'include/vtk-%(version_major_minor)s'],
|
|
}
|
|
|
|
sanity_check_commands = [
|
|
('python', "-c 'import %(namelower)s'"),
|
|
('python', "-c 'import pkg_resources; pkg_resources.get_distribution(\"vtk\")'"),
|
|
]
|
|
|
|
|
|
moduleclass = 'vis'
|