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