Skip to content

Commit

Permalink
adding easyconfigs: IRkernel-1.3.2-gfbf-2023a-R-4.3.2.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed May 28, 2024
1 parent 3520476 commit 7f45efc
Showing 1 changed file with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 7f45efc

Please sign in to comment.