Skip to content

package upgrades post virtualenv creation by default should be off #448

Closed
@asottile

Description

@asottile

In virtualenv 15, virtualenv by default attempts to upgrade pip, setuptools, and wheel while creating a virtualenv. It does this by using whatever PIP_INDEX_URL is set (or doesn't at all if --no-download or VIRTUALENV_NO_DOWNLOAD is set).

In my ideal world, I'd love for tox to default to VIRTUALENV_NO_DOWNLOAD=1, but I can see why that may be surprising or not a popular choice (since it would differ from the choice made in pypa/virtualenv). The main reason I want this is to have repeatable builds without being surprised by external factors changing / going down (pypi goes down pretty frequently! and setuptools upgrades pretty frequently (and breaks things too often)).

Since this is probably not reasonable, I think a good compromise would be to export PIP_INDEX_URL=tox['indexserver']['default'] if provided -- this would solve our primary concern and ensure repeatable builds given the state of our index server.

Metadata

Metadata

Assignees

Labels

area:testenv-creationfeature:newsomething does not exist yet, but shouldlevel:mediumrought estimate that this might be neither easy nor hard to implementneeds:workfor PRs: not quite there and needs some changespr-merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions