Skip to content

Commit cdb1b0a

Browse files
authored
Fix online wasm build instructions (#226)
1 parent 53d2f64 commit cdb1b0a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/source/InstallationAndUsage.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,17 @@ Installation within a mamba environment (wasm build instructions)
4646
========================
4747

4848
These instructions will assume you have cmake installed on your system. First clone the repository, and move into that directory
49+
4950
.. code-block:: bash
51+
5052
git clone --depth=1 https://github.com/compiler-research/xeus-cpp.git
5153
cd ./xeus-cpp
5254
5355
5456
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
5557

5658
.. code-block:: bash
59+
5760
cd $HOME
5861
git clone https://github.com/emscripten-core/emsdk.git
5962
cd emsdk
@@ -65,6 +68,7 @@ You'll now want to make sure you're using emsdk version "3.1.45" and activate it
6568
You are now in a position to build the xeus-cpp kernel. You build it by executing the following
6669

6770
.. code-block:: bash
71+
6872
micromamba create -f environment-wasm-host.yml --platform=emscripten-wasm32
6973
mkdir build
7074
pushd build
@@ -83,22 +87,16 @@ You are now in a position to build the xeus-cpp kernel. You build it by executin
8387
To build Jupyter Lite with this kernel without creating a website you can execute the following
8488

8589
.. code-block:: bash
90+
8691
micromamba create -n xeus-lite-host jupyterlite-core
8792
micromamba activate xeus-lite-host
8893
python -m pip install jupyterlite-xeus
8994
jupyter lite build --XeusAddon.prefix=$PREFIX
9095
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-
9996
Once the Jupyter Lite site has built you can test the website locally by executing
10097

10198
.. code-block:: bash
99+
102100
jupyter lite serve --XeusAddon.prefix=$PREFIX
103101
104102
Installing from conda-forge

0 commit comments

Comments
 (0)