Install SPy¶
Installation status
At the moment, the only supported way to install SPy is an editable install of
a Git checkout. Installing from a wheel, for example with
uv tool install spylang --prerelease allow, will soon be supported.
This page presents how to do this editable install with uv.
Prerequisites¶
You need:
- uv, which also takes care of installing Python.
- A C compiler:
build-essentialon Debian/Ubuntu, or the Xcode command line tools on macOS (xcode-select --install). -
The bdw-gc garbage collector (the Boehm-Demers-Weiser GC), which is not installed by uv:
With Homebrew:
Install from a Git checkout¶
make -C spy/libspy builds libspy, the small C runtime library that every
SPy program is linked against.
Note
The make -C spy/libspy step will soon not be needed anymore.
Check the installation¶
You are ready for the Getting started tutorial.
For the other installation methods (pip, Pixi) and the optional build dependencies, see the development setup.