Skip to content

pip should respect package index option when installing build requirements #5315

@daa

Description

@daa
  • Pip version: 10.0.1
  • Python version: 2.7.14
  • Operating system: Ubuntu Linux

Description:

I tried to build wheel using pyproject.toml and using only wheels available at my own wheelhouse. As may be seen from logs pip downloads transitive dependencies from pypi however it must try to find dependencies only at places I specified and do not use pypi and external sources at all.

What I've run:

$ cat pyproject.toml 
[build-system]
requires = ["svn"]

$ pip wheel -v --find-links ~/wheelhouse/ --no-index .
... here pip searches for links for svn package
  Processing .../wheelhouse/svn-0.3.44-py2.py3-none-any.whl
  Collecting python-dateutil>=2.2 (from svn==0.3.44)
    Downloading https://files.pythonhosted.org/packages/0c/57/19f3a65bcf6d5be570ee8c35a5398496e10a0ddcbc95393b2d17f86aaaf8/python_dateutil-2.7.2-py2.py3-none-any.whl (212kB)
  Collecting nose (from svn==0.3.44)
    Downloading https://files.pythonhosted.org/packages/99/4f/13fb671119e65c4dce97c60e67d3fd9e6f7f809f2b307e2611f4701205cb/nose-1.3.7-py2-none-any.whl (154kB)
  Collecting six>=1.5 (from python-dateutil>=2.2->svn==0.3.44)
    Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  Installing collected packages: six, python-dateutil, nose, svn

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions