Install Fastscapelib

This library is header only and uses C++14 standards. It depends on xtensor (>0.18).

Install the C++ library

Using conda

Fastscapelib is available as a conda package in the conda-forge channel.

$ conda install fastscapelib -c conda-forge

From source using cmake

You need to first install the dependencies. You can install xtensor, e.g., using conda:

$ conda install xtensor -c conda-forge

Run the commands below from the source directory to install the fastscapelib’s header files using cmake (on Unix platforms):

$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/path/to/prefix ..
$ make install

Where /path/to/prefix is the path where the header files will be installed.

On Windows platforms:

$ mkdir build
$ cd build
$ cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=/path/to/prefix ..
$ nmake
$ nmake install

Install the Python library

Using conda

Fastscapelib’s Python bindings is available as a separate conda package, still in the conda-forge channel.

$ conda install fastscapelib-python -c conda-forge

From source using pip

Fastscapelib’s Python bindings requires Python (2.7.x or 3.4+), numpy, pybind11 and xtensor-python, which are also available through conda:

$ conda install python numpy pybind11 xtensor-python -c conda-forge

The fastscapelib Python package can then be installed locally using pip in editable mode:

$ cd python
$ pip install -e .