Skip to content

Editable install of local package fails without network connectivity #5417

@jmbowman

Description

@jmbowman

Environment

  • pip version: 10.0.1
  • Python version: 3.6.3
  • OS: Mac OS X 10.11.6

Description

An editable installation of a local setuptools checkout fails when there is no network access under pip 10.0.0 and pip 10.0.1. It works under pip 9.0.3, so this seems to be a regression. Also reproduced on another developer's notebook at the PyCon sprints.

This is particularly problematic because it blocks offline execution of tests via tox when usedevelop=True (which is relatively common).

Expected behavior

$ pip install -e /Users/jeremybowman/Source/setuptools
Obtaining file:///Users/jeremybowman/Source/setuptools
Installing collected packages: setuptools
  Found existing installation: setuptools 39.1.0.post20180516
    Uninstalling setuptools-39.1.0.post20180516:
      Successfully uninstalled setuptools-39.1.0.post20180516
  Running setup.py develop for setuptools
Successfully installed setuptools

How to Reproduce

  1. Clone the setuptools git repo: git clone [email protected]:pypa/setuptools.git
  2. Change into the setuptools project directory: cd setuptools
  3. Then run pip install -e .
  4. The error shown below occurs.

Output

$ git clone [email protected]:pypa/setuptools.git
$ cd setuptools
$ pip install -e .
Obtaining file:///Users/jeremybowman/Source/setuptools
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x1040d4cc0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/setuptools/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10409ce80>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/setuptools/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x1040c1eb8>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/setuptools/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x1040c1fd0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/setuptools/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x1040c1be0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/setuptools/
  Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: editableEditable installationsauto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions