10000 Stop installing setuptools and wheel by default · Issue #200 · pypa/get-pip · GitHub
[go: up one dir, main page]

Skip to content
Stop installing setuptools and wheel by default #200
@edmorley

Description

@edmorley

Currently get-pip.py installs not only pip, but also setuptools and wheel by default, unless the --no-setuptools / --no-wheel (or PIP_NO_SETUPTOOLS / PIP_NO_WHEEL env vars) are used.

This has historically been necessary, however, modern versions of pip will now fallback to pyproject.toml (PEP 517) based builds (which will default to a setuptools backend, and thus automatically install setuptools and wheel in the isolated build environment) if either setuptools is not installed (as of pip 22.1), or if wheel is not installed (as of pip 23.1).

In addition, as of Python 3.12, the stdlib's ensurepip and venv modules no longer install setuptools, and only install pip.

As such, it seems like it might be time for get-pip.py to stop installing setuptools and wheel by default, in order to:

  • act as another small step towards pyproject.toml / PEP 517 based builds eventually becoming the pip default. (Cross-reference: Default to isolated, pyproject.toml-based builds pip#9175)
  • improve parity with the behaviour of latest ensurepip / venv
  • allow get-pip.py to focus on its primary responsibility: bootstrapping pip

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0