Skip to content

Allow passing packages to --excludes option #16771

@terror

Description

@terror

There are cases where users may want to exclude a single package, but end up having to write it to a file in order to do so, which I find a bit awkward. We should consider allowing --excludes for pip {compile, install, tool install} to accept package names alongside actual paths.

For instance, the following flow:

uv self update
echo xformers > exclude.txt
uv pip install -U vllm --extra-index-url [https://wheels.vllm.ai/nightly](https://t.co/Y5FwbIWlUu) --excludes exclude.txt

would become:

uv self update
uv pip install -U vllm --extra-index-url [https://wheels.vllm.ai/nightly](https://t.co/Y5FwbIWlUu) --exclude xformers

This may be a bit tricky to implement, since it will likely require us to make a guess as to what argument is a path or a package name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions