Skip to content

Show basic information about the build environment without --verbose #13302

Open
@zahlman

Description

@zahlman

What's the problem this feature will solve?

While investigating the recent issue with Setuptools 78.x, it occurred to me that when Pip builds a wheel, the default output doesn't actually describe the build dependencies:

$ rm -r pip-isolation-test/
$ python -m venv pip-isolation-test --without-pip
$ pip cache purge -q
$ pip --python pip-isolation-test/bin/python install --no-binary=requests requests
Collecting requests
  Downloading requests-2.32.3.tar.gz (131 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done

Etc. With --verbose we find out the version of setuptools that was used in the isolated build environment, but we also get many more pages of output describing the entire (error-free) build process, as well as details about the build environment creation process.

It would also be nice for the output to be clearer about the fact that these installations are for a temporary build environment.

Describe the solution you'd like

We should just be able to see something like:

Collecting requests
  Downloading requests-2.32.3.tar.gz (131 kB)
  Setting up isolated (temporary) build environment ...
    Installing build dependencies ...
      Successfully installed setuptools-78.0.2
      # possibly other things listed here, if pyproject.toml demanded them.
    ... done
    Getting requirements to build wheel ...
      # possibly other things listed here, if the PEP 517 hooks trigger such installation.
    ... done
  ... done
  Preparing metadata (pyproject.toml) ... done

Alternative Solutions

N/A

Additional context

N/A

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions