Installation¤
Stable¤
Stable releases of :mod:compas_cgal can be installed via conda-forge.
Several examples use the COMPAS Viewer for visualisation.
To install compas_viewer in the same environment
Using uv¤
uv can be used to set up an isolated environment and build compas_cgal from source.
uv venv --python 3.12
uv pip install -r requirements.txt -r requirements-dev.txt -r requirements-viz.txt
uv pip install -e . --no-build-isolation
Activate the environment with .venv\Scripts\activate on Windows or source .venv/bin/activate on macOS/Linux.
The editable install triggers a native CMake/CGAL build via scikit-build-core and nanobind, which can take several minutes on the first run.
Dev Install¤
See the developer guide.
Building the documentation¤
Install the docs toolchain once:
Build the site (always works, no network/socket needed):
Output is written to ./site/. Open site/index.html directly, or serve it locally:
A high port like 49500 avoids the Windows reserved-port ranges (Hyper-V/WSL2) that cause PermissionError: [WinError 10013] on the default port 8000.
CI deploys via mkdocs gh-deploy --force on every push to main (.github/workflows/docs.yml).