}

Install pip Dependency from GitHub in setup.py

To install a dependency from github or a git repo you need to add dependency_link llist parameter of the setup(). Keep in mind the you need to add the requirement in the install_requires:

setup(
# .... setup parameters
install_requires=[
     'project_name'
],
dependency_links=[
        'git+https://github.com/user/repo.git#egg=project_name'
],
# .... setup parameters
)

MAKE SURE that the egg name matches the requirement on install_requires

Leonardo Lazzaro

Software engineer and technical writer. 10+ years experience in DevOps, Python, and Linux systems.

More articles by Leonardo Lazzaro