From 7f45efca1fb34d57eb4b9360ef83524545730c03 Mon Sep 17 00:00:00 2001 From: Alex Domingo Date: Tue, 28 May 2024 16:26:02 +0200 Subject: [PATCH] adding easyconfigs: IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb --- .../IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 easybuild/easyconfigs/i/IRkernel/IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb diff --git a/easybuild/easyconfigs/i/IRkernel/IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb b/easybuild/easyconfigs/i/IRkernel/IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb new file mode 100644 index 00000000000..43953215612 --- /dev/null +++ b/easybuild/easyconfigs/i/IRkernel/IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb @@ -0,0 +1,72 @@ +easyblock = 'Bundle' + +name = 'IRkernel' +version = '1.3.2' +versionsuffix = '-R-%(rver)s' + +homepage = 'https://irkernel.github.io' +description = """The R kernel for the 'Jupyter' environment executes R code + which the front-end (Jupyter Notebook or other front-ends) submits to the + kernel via the network.""" + +toolchain = {'name': 'gfbf', 'version': '2023a'} + +dependencies = [ + ('R', '4.3.2'), + ('Python', '3.11.3'), + ('IPython', '8.14.0'), + ('ZeroMQ', '4.3.4'), +] + +exts_defaultclass = 'RPackage' +exts_filter = ("R -q --no-save", "library(%(ext_name)s)") + +exts_default_options = { + 'source_urls': [ + 'https://cran.r-project.org/src/contrib/', + 'https://cran.rstudio.com/src/contrib/', + 'https://cran.r-project.org/src/contrib/Archive/%(name)s/', + ], + 'source_tmpl': '%(name)s_%(version)s.tar.gz', +} + +exts_list = [ + ('uuid', '1.1-1', { + 'checksums': ['1611240eb706e6f53400b25c9cf792ad90f151b72ed0918a1e756997f7abb716'], + }), + ('repr', '1.1.7', { + 'checksums': ['73bd696b4d4211096e0d1e382d5ce6591527d2ff400cc7ae8230f0235eed021b'], + }), + ('IRdisplay', '1.1', { + 'checksums': ['83eb030ff91f546cb647899f8aa3f5dc9fe163a89a981696447ea49cc98e8d2b'], + }), + ('pbdZMQ', '0.3-11', { + 'checksums': ['da7e204d857370201f75a05fbd808a2f409d440cc96855bb8f48f4a5dd75405b'], + }), + (name, version, { + 'checksums': ['e1c6d8bddc23e5039dd9c537feb371f937d60028fb753b90345698c58ae424a6'], + }), +] + +modextrapaths = { + 'R_LIBS_SITE': '', + 'JUPYTER_PATH': '%(name)s' +} + +# IPython notebook looks for the json kernel file in kernels/IRkernel +# We start the kernel with default bitmapType 'cairo'. This is a more sensible default +# for headless nodes. See https://github.com/IRkernel/IRkernel/issues/388 +local_kerneldir = '%(installdir)s/IRkernel' +postinstallcmds = [ + 'mkdir -p %s/kernels/ir' % local_kerneldir, + 'cp %s/kernelspec/* %s/kernels/ir' % (local_kerneldir, local_kerneldir), + ('sed -i \'s/"IRkernel::main()"/"options(bitmapType=\\x27cairo\\x27); IRkernel::main()"/g\'' + ' %s/kernels/ir/kernel.json') % local_kerneldir +] + +sanity_check_paths = { + 'files': ['%s/kernels/ir/kernel.json' % local_kerneldir], + 'dirs': [name], +} + +moduleclass = 'tools'