Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 1.74 KB

installation.rst

File metadata and controls

74 lines (47 loc) · 1.74 KB
.rst-content .section>img { width: 30px; margin-bottom: 0; margin-top: 0; margin-right: 15px; margin-left: 15px; float: left; }

Installation

Although xtensor-python is a header-only library, we provide standardized means to install it, with package managers or with cmake.

Besides the xtendor-python headers, all these methods place the cmake project configuration file in the right location so that third-party projects can use cmake's find_package to locate xtensor-python headers.

image

Using the conda-forge package ----------------------------

A package for xtensor-python is available on the mamba (or conda) package manager.

mamba install -c conda-forge xtensor-python

image

Using the Debian package

A package for xtensor-python is available on Debian.

sudo apt-get install xtensor-python-dev

image

From source with cmake

You can also install xtensor-python from source with cmake. On Unix platforms, from the source directory:

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

On Windows platforms, from the source directory:

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

See the section of the documentation on build-options, for more details on how to cmake options.