Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Update CONTRIBUTING.md

Peter Sobot89667f2a9b40
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9b2f5dd..aaee231 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -13,6 +13,21 @@ pip3 install pybind11
pip3 install .
```
+To compile a debug build of `pedalboard` that allows using a debugger (like gdb or lldb), use the following command to build the package locally and install a symbolic link for debugging:
+```shell
+python3 setup.py build develop
+```
+
+Then, you can `import pedalboard` from Python (or run the tests with `tox`) to test out your local changes.
+
+To compile a debug build _faster_ by using [Ccache](https://ccache.dev/) (`brew install ccache` on macOS, similar elsewhere):
+```shell
+rm -rf build && CC="ccache clang" CXX="ccache clang++" DEBUG=1 python3 setup.py build -j8 develop
+```
+
+By default, [all `.cpp` files in the `pedalboard` directory (or subdirectories)](https://github.com/spotify/pedalboard/blob/master/setup.py#L129)
+will be automatically compiled by `setup.py`.
+
## Workflow
We follow the [GitHub Flow Workflow](https://guides.github.com/introduction/flow/):