To install Basix, you must first install the C++ interface and library:
cmake -DCMAKE_BUILD_TYPE=Release -B build-dir -S .
cmake --build build-dir
cmake --install build-dir
You may need to use
sudo for the final install step. Using the CMake
Release is strongly recommended for performance.
To use Basix via Python, you will need to install the Basix Python
interface. First, you will need to install pybind11:
pybind11. You can then install the Basix Python interface with:
pip install .
Once you have installed the Basix Python interface, you can run the
Basix tests to check that everything is running correctly. First,
pip install pytest. You can then run the tests with:
Building the Python interface required