@@ -46,14 +46,17 @@ Installation within a mamba environment (wasm build instructions)
46
46
========================
47
47
48
48
These instructions will assume you have cmake installed on your system. First clone the repository, and move into that directory
49
+
49
50
.. code-block :: bash
51
+
50
52
git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git
51
53
cd ./xeus-cpp
52
54
53
55
54
56
You'll now want to make sure you're using emsdk version "3.1.45" and activate it. You can get this by executing the following
55
57
56
58
.. code-block :: bash
59
+
57
60
cd $HOME
58
61
git clone https://github.com/emscripten-core/emsdk.git
59
62
cd emsdk
@@ -65,6 +68,7 @@ You'll now want to make sure you're using emsdk version "3.1.45" and activate it
65
68
You are now in a position to build the xeus-cpp kernel. You build it by executing the following
66
69
67
70
.. code-block :: bash
71
+
68
72
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
69
73
mkdir build
70
74
pushd build
@@ -83,22 +87,16 @@ You are now in a position to build the xeus-cpp kernel. You build it by executin
83
87
To build Jupyter Lite with this kernel without creating a website you can execute the following
84
88
85
89
.. code-block :: bash
90
+
86
91
micromamba create -n xeus-lite-host jupyterlite-core
87
92
micromamba activate xeus-lite-host
88
93
python -m pip install jupyterlite-xeus
89
94
jupyter lite build --XeusAddon.prefix=$PREFIX
90
95
91
- We now need to shift necessary files like `xcpp.data ` which contains the binary representation of the file(s)
92
- we want to include in our application. As of now this would contain all important files like Standard Headers,
93
- Libraries etc coming out of emscripten's sysroot. Assuming we are still inside build we should do the following
94
-
95
- .. code-block :: bash
96
- cp $PREFIX /bin/xcpp.data _output/extensions/@jupyterlite/xeus/static
97
- cp $PREFIX /lib/libclangCppInterOp.so _output/extensions/@jupyterlite/xeus/static
98
-
99
96
Once the Jupyter Lite site has built you can test the website locally by executing
100
97
101
98
.. code-block :: bash
99
+
102
100
jupyter lite serve --XeusAddon.prefix=$PREFIX
103
101
104
102
Installing from conda-forge
0 commit comments