Skip to content

Concurrent upgrade of setuptools and other sdist packages fails #4253

Closed
@jaraco

Description

@jaraco

Beginning with Setuptools 34 (pypa/setuptools#581), there's a bit of a race condition when setuptools is being upgraded as part of a larger install operation. Users have reported here's what happens:

  1. Pip encounters the requirement to upgrade setuptools, downloads the wheel.
  2. Pip downloads sdists for other packages to be built and installed.
  3. Pip uninstalls setuptools.
  4. Pip attempts to build other package but setuptools isn't yet fully installed (its dependencies are missing).

Here's a build where the issue occurs.

I believe when #4144 lands, pip can create an implied dependency of setuptools on every package to provide compatibility with the prior expectation.

In the interim, packages and environments affected should pin to an old version of setuptools or (preferably) upgrade setuptools in a separate step prior to upgrading other packages. See python-excel/xlrd#194 for an example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-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