Skip to content

impossible to use install_command if you need newer pip #765

Closed
@ssbarnea

Description

@ssbarnea

It seems that the current implementation of install_command introduces a conflict that seems impossible to resolve when system pip version is older, mainly because it is impossible to tell tox to upgrade pip before installing requirements.

Imagine that you have this command:

install_command = pip install -cupper-constraints.txt {opts} {packages}

This may fail if the pip version is older and does not support -c parameter but at the same time we cannot upgrade pip inside the virtualenv before running the command.

If I try to force upgrading pip by adding it to the top of dependencies, I still get the failure, because the -c param does not exist. If I remove the param, I loose the functionality needed for the rest of packages.

Somehow, this makes the entire install_command impossible to use. Do we have a workaround for this issue, one that does not require upgrade system pip which would be against tox principle of not having to touch the system.

Considering that doing the installation manually, using commands = works, this indicates a tox bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:newsomething does not exist yet, but shouldhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions