-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathJupyterProxy-XpraHTML5-0.4.3-GCCcore-13.3.0.eb
More file actions
74 lines (64 loc) · 1.96 KB
/
Copy pathJupyterProxy-XpraHTML5-0.4.3-GCCcore-13.3.0.eb
File metadata and controls
74 lines (64 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This file is part of JSC's public easybuild repository (https://github.com/easybuilders/jsc)
easyblock = 'PythonBundle'
name = 'JupyterProxy-XpraHTML5'
version = '0.4.3'
homepage = 'https://xpra.org'
description = """
Jupyter proxy for Xpra HTML5 sessions.
Xpra is an open-source multi-platform persistent remote display server and client
for forwarding applications and desktop screens.
"""
toolchain = {'name': 'GCCcore', 'version': '13.3.0'}
toolchainopts = {'pic': True}
builddependencies = [
('binutils', '2.42'),
# check for existance
('xpra', '6.3.4'),
('jsc-xdg-menu', '2025.2'),
]
dependencies = [
('Python', '3.12.3'),
('jupyter-server-proxy', '20250303'),
]
use_pip = True
sanity_pip_check = True
exts_list = [
('jupyter-xprahtml5-proxy', version, {
'source_urls': ['https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy/archive/refs/tags/'],
'source_tmpl': 'v%(version)s.tar.gz',
'checksums': [
'ce6e2a6e7a8d3b70b26bd03cf223861f59e01b4f5aca9a14dbd831014b3c9f0b',
],
}),
]
postinstallcmds = [
# write xpra
(
'{ cat > %(installdir)s/lib/python%(pyshortver)s/'
'site-packages/jupyter_xprahtml5_proxy/bin/xpra; } << EOF \n'
'#!/bin/bash \n'
'\n'
'# Load required modules \n'
'module purge \n'
'module load Stages/${STAGE} \n'
'module load GCCcore/.13.3.0 \n'
'module load xpra \n'
'module load jsc-xdg-menu/.2025.2 \n'
'\n'
'# xterm should be part of the module Xvfb which is loaded by xpra\n'
'if ! command -v xterm &> /dev/null \n'
'then \n'
' echo "xterm not found " \n'
'fi \n'
'\n'
'xpra "\\$@" \n'
'\n'
'EOF'
),
'chmod +x %(installdir)s/lib/python%(pyshortver)s/site-packages/jupyter_xprahtml5_proxy/bin/xpra'
]
sanity_check_paths = {
'files': [],
'dirs': ['lib/python%(pyshortver)s/site-packages'],
}
moduleclass = 'tools'