Jak mogę zainstalować z podkatalogu git za pomocą pip?

Mam repozytorium git z wieloma folderami, z których jeden jest modułem Pythona instalowanym za pomocą pip, jak poniżej:

repo.git/
repo.git/folder1/
repo.git/folder2/
repo.git/mymodule/
repo.git/mymodule/__init__.py
repo.git/mymodule/setup.py
repo.git/mymodule/...

Teraz muszę wykonać następujące czynności, aby zainstalować:

git clone http://server/repo.git
cd repo
pip install mymodule
cd ..
rm -rf repo

Czy można zainstalować moduł bezpośrednio za pomocą pip bez jawnego klonowania?

Próbowałem:

pip install git+https://server/repo.git/mymodule/
pip install git+https://server/repo.git:mymodule/

Ale dostaję:

IOError: [Errno 2] No such file or directory: '/tmp/pip-88tlLm-build/setup.py'

questionAnswers(2)

yourAnswerToTheQuestion