Bradley Kirton's Blog

Published on Jan. 19, 2024

Go home

Installing Python packages from source control

Pip allows from install packages directly from [source control(https://pip.pypa.io/en/stable/topics/vcs-support/).

For example, suppose you wanted to install the master branch of yamdl.

pip install yamdl@git+ssh://git@github.com/andrewgodwin/yamdl@master

This also works when defined in your pyproject.toml.

dependencies = [
    "yamdl@git+ssh://git@github.com/andrewgodwin/yamdl@master"
]