Skip to content

tox auto-provisioning not working #2634

@johannesloibl

Description

@johannesloibl

Issue

When specifying

[tox]
requires =
    tox<4

and running this command with a tox version > 4.0.0, I expect that tox will provision a .tox/.tox directory with a version < 4.0.0.
But the created venv .tox does not get a tox installation. See console.

Environment

OS: Win 10, 64-bit
Python 3.9.13
tox 4.0.2

Output of running tox

Output of tox -e py39-dev:

C:\git\foo>tox -e py39-dev
ROOT: will run in automatically provisioned tox, host C:\Python39\python.exe is missing [requires (has)]: tox<4 (4.0.2)
ROOT: provision> .tox\.tox\Scripts\python.exe -m tox -e py39-dev
C:\git\foo\.tox\.tox\Scripts\python.exe: No module named tox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impacthelp: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