pip icon indicating copy to clipboard operation
pip copied to clipboard

Clarify difference between "pypa/build" and "pip wheel"

Open kasium opened this issue 2 years ago • 3 comments

What's the problem this feature will solve?

The packaging guide recommends to use build to create wheels. However, pip has an own command in place.

Describe the solution you'd like

Addition to the docs why a separate command is needed, the differences and the relation for the tools

Alternative Solutions

n/a

Additional context

n/a

Code of Conduct

kasium avatar Jul 07 '22 07:07 kasium

pip wheel builds (or downloads) wheels for a set of requirements, and also for all dependencies of those requirements. py -m build simply builds a wheel (and sdist) for the project in your current directory.

While we shouldn't be describing what build does in the pip documentation (as it won't track any changes in the functionality of build) if you feel that there's any wording that would have helped clarify that pip does more than just "build the current project" then a PR with suggested extra wording would be welcome. (It doesn't have to be perfect, we can iterate on a suggestion if needed).

pfmoore avatar Jul 07 '22 08:07 pfmoore

I see. Let me try to create a PR. Thanks a lot

kasium avatar Jul 07 '22 08:07 kasium

Specifically, pip wheel is meant to create what some folks call a "wheelhouse". That's a bundle of wheels that you can use to install packages, by later pointing pip to it via --no-index --find-links <path>.

pradyunsg avatar Jul 13 '22 08:07 pradyunsg