The situation I'm trying to solve is to install a package from a private repository on a bitbucket, which has its own dependency on another private repository on the bitbucket.
I use this to run the installation:
pip install -e git+https://bitbucket.org/myuser/project-one.git/master
which then tries to load its dependencies from setup.py, which look like this:
install_requires = ['project-two',],
dependency_links = ['git+https://bitbucket.org/myuser/project-two.git/master#egg=project_two'],
This fails, the pip log looks like this:
Downloading/unpacking project-two (from project-one)
Getting page https://pypi.python.org/simple/project-two/
Could not fetch URL https://pypi.python.org/simple/project-two/: HTTP Error 404: Not Found (project-two does not have any releases)
Will skip URL https://pypi.python.org/simple/project-two/ when looking for download links for project-two (from project-one)
Getting page https://pypi.python.org/simple/
URLs to search for versions for project-two (from project-one):
* https://pypi.python.org/simple/project-two/
* git+https://bitbucket.org/myuser/project-two.git/master
Getting page https://pypi.python.org/simple/project-two/
Cannot look at git URL git+https://bitbucket.org/myuser/project-two.git/master
Could not fetch URL https://pypi.python.org/simple/project-two/: HTTP Error 404: Not Found (project-two does not have any releases)
Will skip URL https://pypi.python.org/simple/project-two/ when looking for download links for project-two (from project-one)
Skipping link git+https://bitbucket.org/myuser/project-two.git/master
Could not find any downloads that satisfy the requirement project-two (from project-one)
A curious thing about this setting: if I take a clone of project-1 and run
python setup install
from there, project-two is extracted from the bitpack and installed in my virtualenv. My understanding was that the pip used tuning tools under the hood, so my assumption was that the success of this test confirmed my approach.
Any suggestions appreciated.
SUBSEQUENT:
, - (https + http auth-basic).
dependency_links=["http://user:password@bitbucket.org/myuser/..."]
401. pip.download.py urlopen (, pip urllib2, ).
, .