Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip install a python library from within a github monorepo

I have a monorepo github project, within which there is a python lib repo/python-tools, what I would like to do is pip install this library into another project.

Something like:

python -m pip install git+https://github.com/myorg/myrepo/python-tools

This is a private repository and the project is built using poetry.

like image 482
dendog Avatar asked Sep 03 '25 07:09

dendog


1 Answers

Try

python -m pip install 'git+https://github.com/myorg/myrepo.git#egg=python_tools&subdirectory=python-tools'

See the docs at https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support

like image 119
phd Avatar answered Sep 04 '25 21:09

phd