Once you have the source code, the extension can be built via

$ python build_ext

We recommend testing with pytest:

$ pytest

Tests use the hypothesis Python package to perform fuzzing. If you don’t have it, those tests won’t run. Since the fuzzing tests take longer to execute than normal tests, you’ll need to opt in to running them by setting the ZSTD_SLOW_TESTS environment variable.

The cffi Python package needs to be installed in order to build the CFFI bindings. If it isn’t present, the CFFI bindings won’t be built.

To create a virtualenv with all development dependencies, do something like the following:

$ python3 -m venv venv

$ source venv/bin/activate
$ pip install -r ci/requirements.txt