Skip to content

Doc for option --no-binary is wrong #13087

Open
@paugier

Description

@paugier

Description

With pip 24.3.1, the documentation for --no-binary is wrong.

  --no-binary <format_control>
                              Do not use binary packages. Can be supplied multiple times, and each time adds
                              to the existing value. Accepts either ":all:" to disable all binary packages,
                              ":none:" to empty the set (notice the colons), or one or more package names
                              with commas between them (no colons). Note that some packages are tricky to
                              compile and may fail to install when this option is used on them.

But since 23.1 (https://pip.pypa.io/en/stable/news/#v23-1), "--no-binary does not disable the cache of locally built wheels anymore. It only means “don’t download wheels”. (#11453)"

Note that uv doc is better (from https://docs.astral.sh/uv/pip/compatibility/#-no-binary-enforcement):

The --no-binary argument is used to restrict installation to source distributions.
When --no-binary is provided, uv will refuse to install pre-built binary distributions, but will reuse any binary distributions that are already present in the local cache.

Expected behavior

No response

pip version

24.3.1

Python version

3.11

OS

Debian

How to Reproduce

pip install -h

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: awaiting PRFeature discussed, PR is neededtype: bugA confirmed bug or unintended behaviortype: docsDocumentation related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions