Skip to content

pip wheel should provide the name of the resulting file #6340

@encukou

Description

@encukou

What's the problem this feature will solve?
We want to adopt PEP 517 & 518 for Fedora, which uses separate build and install phases. We want to run these commands (separately, and as automatically as possible):

  • pip wheel
  • pip install <resulting wheel>

The problem is that while the PEP 517 build_wheel hook returns the basename of the built wheel, pip AFAIK doesn’t share this information any further. We simply don’t know where the built wheel is located.

(Miro asked in packaging Discourse to see if this should go in the non-normative section of PEP 517. The response was that this would be a good feature request for pip, but that's it.)

Describe the solution you'd like
Either:

  • Print the wheel name in some parseable format, like: Resulting wheel: foo-1.2.3-py2.py3-none-any.whl, call this an API, and include tests to ensure it doesn't change.
  • Add a option to name of a file to which the wheel name would be written.

Alternative Solutions
Any other way to get the wheel name from pip would work.
We don't want to guess/construct it ourselves – we feel that should be pip's job to provide the complete name.

Additional

We're happy to provide the PR if y'all agree it would be an improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: wheelThe wheel format and 'pip wheel' commandtype: feature requestRequest for a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions