Installation ============ You can install featomic in different ways depending on which language you plan to use it from. .. _install-python-lib: Installing the Python module ---------------------------- Pre-compiled wheels ^^^^^^^^^^^^^^^^^^^ The easiest way to install featomic is to use `pip `_. .. code-block:: bash pip install --upgrade pip pip install featomic Building from source ^^^^^^^^^^^^^^^^^^^^ If you want to build the code from source, you'll need a Rust compiler, which you can install using `rustup `_ or your OS package manager; and `git `_. .. code-block:: bash # Make sure you are using the latest version of pip pip install --upgrade pip git clone https://github.com/metatensor/featomic cd featomic pip install . # alternatively, the same thing in a single command pip install git+https://github.com/metatensor/featomic .. _install-c-lib: Installing the C/C++ library ---------------------------- This installs a C-compatible shared library that can also be called from C++, as well as CMake files that can be used with ``find_package(featomic)``. .. code-block:: bash git clone https://github.com/metatensor/featomic cd featomic/featomic mkdir build cd build cmake .. make install The build and installation can be configures with a few cmake options, using ``-D