-
Notifications
You must be signed in to change notification settings - Fork 4
upgrade pip/setuptools and install wheel in venv? #17
Comments
Yeah - this shouldn't be difficult to add. Possible ini setup... [tox]
...
[venv]
upgrade = true ; upgrades pip & setuptools
upgrade = ; or upgrade pip & setuptools to the specified versions
pip>=10
setuptools>=36 That said, I would say 👎 to including |
Thanks @rpkilby. The proposed config option looks good to me. And I'm fine with depending explicitly on wheel when needed. |
I was going to ask if something like this could be added. The other thing I was going to look at is run something in the configuration (possible in my tox-globinterpreter install) before the normal install. If that option
(Actually --target puts everything, including the executable |
FWIW: I solved this for me by writing a utility that downloads the latest wheels for pip and setuptools and updates the hardcoded numbers in |
#25 also addresses this issue. |
Is this effectively resolved by the |
I don’t think so. The requires directive indicates which version of tox-venv should be used... or which version of setuptools must be present in the environment alongside tox. But it doesn’t designate anything about the target environments. |
👌 Thanks |
It sounds like the solution is to use
|
This problem becomes more serious in light of #42. Now tox-venv is simply unviable in some environments where tox without it works. And the |
tox-venv is being deprecated, so this issue no longer needs attention. |
when using the regular tox (without tox-venv plugin), the created environments will have the latest versions of pip and setuptools, because the default behaviour of virtualenv is to reach out to the Internet to download the latest versions from PyPI, unless --no-download is passed (which tox doesn't seem to be doing). In addition, virtualenv always installs the wheel module as well as pip and setuptools.
However, when using the built-in python3's
venv
module, pip and setuptools gets installed using theensurepip
built-in module, which by design does not access the Internet. Also, wheel doesn't get automatically installed when doing ensurepip.For consistency between the tox environments for python2.7 and those for python3+, it would be great if tox-venv plugin would do a
python -m pip install --upgrade pip setuptools wheel
after having created the new venv.Thanks!
The text was updated successfully, but these errors were encountered: