If you do not have docker, you can setup your local development environment as a python virtual environment using Poetry.
- Make sure that GDAL's dependencies
- libgdal (3.5.1 or greater)
- header files (gdal-devel)
- See
.github/workflows/tests.yml
to see how these dependencies are installed in CI
are satisfied. If not, install them.
- Install poetry according to your platform's instructions.
Run all commands in the repository root unless instructed otherwise
- Install dependencies and create a virtual environment
poetry install
- To use the virtual environment you can either enter it with
poetry shell
or prefix your normal shell commands with
poetry run
If you want to use jupyterlab see the instructions