Skip to content

Development in UV

Install UV if you haven't already.

Install vcpkg as Windows or Linux guides.

Install the build dependencies:

uv pip install scikit-build-core setuptools-scm

Build the project and install the Python package in editable mode; specify the build directory to cache the CMake build results; and disable build isolation to prevent always reinstalling the dependencies:

uv pip install -e . --config-settings=build-dir=build --no-build-isolation -v

Run the tests, with --no-sync to prevent uv from rebuilding the project every time you run the tests (which is slow):

uv run --no-sync pytest python/tests

xmake

Use xmake to build the project. The following steps configure xmake with Python binding support, create a virtual environment, build the project, and package the Python wheel.

uv venv --python 3.11
source venv/bin/activate
xmake f --pybind=true --python_system=true --python_version=3.12.x -c
xmake build -j8
xmake pack -v