Install transient bitpack dependencies via pip

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#egg=django_one 

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#egg=project-two
  Getting page https://pypi.python.org/simple/project-two/
  Cannot look at git URL git+https://bitbucket.org/myuser/project-two.git/master#egg=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)
  Skipping link git+https://bitbucket.org/myuser/project-two.git/master#egg=project-two; wrong project name (not project-two)
  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, ).

, .

+5
1

pip VCS, git+https://path/to/repo.git, setuptools .

setup.py setuptools ( pip), setuptools URL.

dependency_links zip , git.

depencency_links :

dependency_links=["https://bitbucket.org/myuser/project-two/get/master.zip#egg=project-two"]

, .

fooobar.com/questions/295593/...


:

+3

All Articles