8
8
` xeus-cpp ` is a Jupyter kernel for cpp based on the native implementation of the
9
9
Jupyter protocol [ xeus] ( https://github.com/jupyter-xeus/xeus ) .
10
10
11
- ## Installation
11
+ ## Installation within a mamba envirnoment
12
12
13
13
xeus-cpp has not been packaged for the mamba (or conda) package manager.
14
14
@@ -19,32 +19,22 @@ fresh environment. It is also needed to use a
19
19
[ anaconda] ( https://www.anaconda.com/ ) you may have a conflict with the ` zeromq ` library
20
20
which is already installed in the anaconda distribution.
21
21
22
- The safest usage is to create an environment named ` xeus-cpp `
23
-
22
+ First clone the repository, and move into that directory
24
23
``` bash
25
- mamba create -n ` xeus-cpp`
26
- source activate ` xeus-cpp`
24
+ git clone --depth=1 https://github.com/compiler-research/ xeus-cpp.git
25
+ cd ./ xeus-cpp
27
26
```
28
-
29
- <!-- ### Installing from conda-forge
30
-
31
- Then you can install in this environment `xeus-cpp` and its dependencies
32
-
27
+ The safest usage of xeus-cpp is to build and install it within a clean environment named ` xeus-cpp ` . You can create and activate this environment
28
+ with mamba by executing the following
33
29
``` bash
34
- mamba install`xeus-cpp` notebook -c conda-forge
35
- ``` -->
36
-
37
- ### Installing from source
38
-
39
- Or you can install it from the sources, you will first need to install dependencies
40
-
30
+ mamba create -n " xeus-cpp"
31
+ source activate " xeus-cpp"
32
+ ```
33
+ We will now install the dependencies needed to compile xeux-cpp from source within this environment by executing the following
41
34
``` bash
42
- mamba install cmake cxx-compiler xeus-zmq nlohmann_json cppzmq xtl jupyterlab clangdev=16 cpp-argparse pugixml -c conda-forge
35
+ mamba install notebook cmake cxx-compiler xeus-zmq nlohmann_json cppzmq xtl jupyterlab clangdev=16 cpp-argparse pugixml doctest -c conda-forge
43
36
```
44
-
45
- Then you can compile the sources (replace ` $CONDA_PREFIX ` with a custom installation
46
- prefix if need be)
47
-
37
+ Now you can compile the kernel from the source by executing (replace ` $CONDA_PREFIX ` with a custom installation prefix if need be)
48
38
``` bash
49
39
mkdir build && cd build
50
40
cmake .. -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX -D CMAKE_INSTALL_LIBDIR=lib
0 commit comments