I have the following structure in git
scripts/
scripts/folder1/
scripts/folder1/module
scripts/folder1/module/setup.py
scripts/folder1/module/src/module
scripts/folder1/module/src/module/__init__.py
scripts/folder1/module/src/module/source.py
I want to install module , so I tried the following in my requirements.txt
git+https://user@bitbucket.org/repo-name/scripts.git#egg=module&subdirectory=module
but this does not seem to work and I get the following error:
IOError: [Errno 2] No such file or directory: '/private/var/folders/p_/gz96g4610fn94hz6w_l2gjyw0000gn/T/pip-build-MLhekq/module/module/setup.py
I understand that this question may have been answered at How can I install from a git subdirectory with pip? but I am looking for the exact syntax in my case.