Installation

Install package with pip

To install with pip:

$ pip install scikit-build

Install from source

To install scikit-build from the latest source, first obtain the source code:

$ git clone https://github.com/scikit-build/scikit-build
$ cd scikit-build

then install with:

$ pip install .

or:

$ pip install -e .

for development.

Dependencies

Python Packages

The main runtime dependency is scikit-build-core[setuptools], which provides the build backend. The full list of dependencies can be seen in pyproject.toml.

Compiler Toolchain

The same compiler toolchain used to build the CPython interpreter should also be available. Refer to the CPython Developer’s Guide for details about the compiler toolchain for your operating system.

For example, on Ubuntu Linux, install with:

$ sudo apt-get install build-essential

On macOS, install Xcode or the command line tools (xcode-select --install).

On Windows, install Visual Studio with the C++ workload.

CMake

The easiest way to get CMake is to add it to the pyproject.toml file. The CMake Python package is then downloaded and installed when your project is built.

To manually install the cmake package from PyPI:

$ pip install cmake

To install the cmake package in conda:

$ conda install -c conda-forge cmake

You can also download the standard CMake binaries for your platform.

Alternatively, build CMake from source with a C++ compiler if binaries are not available for your operating system.