Skip to content

Commit

Permalink
update to v2024.09.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHoffmann77 committed Jan 28, 2025
1 parent e230cef commit 240d2a6
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions easybuild/easyconfigs/r/RDKit/RDKit-2024.09.4-foss-2024a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
easyblock = 'CMakeMake'

name = 'RDKit'
version = '2024.09.4'

homepage = 'https://www.rdkit.org'
description = "RDKit is a collection of cheminformatics and machine-learning software written in C++ and Python."

toolchain = {'name': 'foss', 'version': '2024a'}

source_urls = ['https://github.com/rdkit/rdkit/archive/']
sources = ['Release_%s.tar.gz' % version.replace('.', '_')]

checksums = [
{'Release_2024_09_4.tar.gz': 'a5e8da75aae7e88f3a50d8577f9027c971187492a93a15085f797fe6fef74ad2'},
]

builddependencies = [
('CMake', '3.29.3'),
('Eigen', '3.4.0'),
('pkgconf', '2.2.0'),
]
dependencies = [
('Python', '3.12.3'),
('SciPy-bundle', '2024.05'),
('SQLite', '3.45.3'),
('matplotlib', '3.9.2'),
('Pillow', '10.4.0'),
('Boost.Python-NumPy', '1.85.0'),
('cairo', '1.18.0'),
('Catch2', '3.8.0'),
]

separate_build_dir = True

configopts = "-DPy_ENABLE_SHARED=1 -DRDK_INSTALL_STATIC_LIBS=OFF -DRDK_INSTALL_INTREE=OFF "
configopts += "-DRDK_BUILD_INCHI_SUPPORT=ON "
configopts += "-DBOOST_ROOT=$EBROOTBOOST"

_src_dir = '%%(builddir)s/rdkit-Release_%s' % version.replace('.', '_')

# ingnore failing test pythonSourceTests - from . import rdBase failing
prebuildopts = "sed -i '22d' %s/rdkit/CMakeLists.txt && " % _src_dir

# merge source directory into build directory in order to run the tests
buildopts = '&& cp -RT %(builddir)s/%(namelower)s-*/ ./ '

# Specify path for libraries so that they are found during the tests when the module is built with --rpath flag.
pretestopts = 'export LD_LIBRARY_PATH=%(builddir)s/easybuild_obj/lib:${LD_LIBRARY_PATH} &&'
pretestopts += 'export RDBASE=$PWD && '
pretestopts += 'export PYTHONPATH=$PWD:$PYTHONPATH &&'
runtest = True

# generate minimal dist-info:
_distinfodir = '%(installdir)s/lib/python%(pyshortver)s/site-packages/rdkit-%(version)s.dist-info'
postinstallcmds = [
'mkdir %s' % _distinfodir,
'touch %s/METADATA' % _distinfodir,
'echo "Name: %%(namelower)s" >> %s/METADATA' % _distinfodir,
'echo "Version: %%(version)s" >> %s/METADATA' % _distinfodir,
]

local_libs = ['Alignment', 'Catalogs', 'ChemicalFeatures', 'ChemReactions', 'ChemTransforms', 'coordgen', 'DataStructs',
'Depictor', 'Descriptors', 'DistGeometry', 'DistGeomHelpers', 'EigenSolvers', 'FileParsers',
'FilterCatalog', 'Fingerprints', 'FMCS', 'ForceFieldHelpers', 'ForceField', 'FragCatalog', 'GraphMol',
'hc', 'InfoTheory', 'maeparser', 'MMPA', 'MolAlign', 'MolCatalog', 'MolChemicalFeatures', 'MolDraw2D',
'MolHash', 'MolInterchange', 'MolStandardize', 'MolTransforms', 'Optimizer', 'PartialCharges', 'RDBoost',
'RDGeneral', 'RDGeometryLib', 'RDStreams', 'ReducedGraphs', 'RGroupDecomposition', 'RingDecomposerLib',
'ScaffoldNetwork', 'ShapeHelpers', 'SimDivPickers', 'SLNParse', 'SmilesParse', 'Subgraphs',
'SubstructLibrary', 'SubstructMatch', 'Trajectory']

sanity_check_paths = {
'files': ['lib/libRDKit%s.%s' % (x, SHLIB_EXT) for x in local_libs],
'dirs': [
'include/rdkit', 'lib/python%(pyshortver)s/site-packages/rdkit',
'lib/python%(pyshortver)s/site-packages/rdkit-%(version)s.dist-info'
],
}

sanity_check_commands = [
"python -c 'import rdkit.rdBase'",
]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'chem'

0 comments on commit 240d2a6

Please sign in to comment.