Skip to content

"download = true" doesn't upgrade pip #1768

@xuhdev

Description

@xuhdev

The document says:

Set to true if you want virtualenv to upgrade pip/wheel/setuptools to the latest version.

But it doesn't seem to do so.

~/tmp❯ rm -rf .tox
~/tmp❯ ls -a         
 ./  ../  tox.ini
~/tmp❯ cat tox.ini       
[tox]
minversion = 3.20.1
skipsdist = true

[testenv:py37]
download = true
~/tmp❯ tox -e py37
py37 create: /home/hong/tmp/.tox/py37
py37 run-test-pre: PYTHONHASHSEED='2167709525'
__________________________________________ summary ___________________________________________
  py37: commands succeeded
  congratulations :)
~/tmp❯ . .tox/py37/bin/activate
(py37) ~/tmp❯ which pip
/home/hong/tmp/.tox/py37/bin/pip
(py37) ~/tmp❯ pip --version     
pip 20.2.4 from /home/hong/tmp/.tox/py37/lib/python3.7/site-packages/pip (python 3.7)
(py37) ~/tmp❯ pip install -U pip
Collecting pip
  Using cached pip-20.3.3-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.4
    Uninstalling pip-20.2.4:
      Successfully uninstalled pip-20.2.4
Successfully installed pip-20.3.3

Note that pip isn't the latest version.

tox -e py37 -rvv yields:

(py37) ~/tmp❯ tox -e py37 -rvv
using tox.ini: /home/hong/tmp/tox.ini (pid 4003)
using tox-3.20.1 from /home/hong/.local/lib/python3.7/site-packages/tox/__init__.py (pid 4003)
skipping sdist step
py37 uses /usr/bin/python3
py37 start: getenv /home/hong/tmp/.tox/py37
py37 cannot reuse: -r flag
py37 create: /home/hong/tmp/.tox/py37
setting PATH=/home/hong/tmp/.tox/py37/bin:/home/hong/tmp/.tox/py37/bin:/home/hong/.gem/ruby/2.5.0/bin:/home/hong/.emacs.d/el-get/rtags/bin:/home/hong/.local/opt/emacs/bin:/home/hong/.local/bin:/home/hong/.zplug/bin:/home/hong/.local/bin:/home/hong/.local/opt/emacs/bin:/home/hong/.local/opt/gnucash/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin          
[4006] /home/hong/tmp/.tox$ /usr/bin/python3 -m virtualenv --python /usr/bin/python3 py37
created virtual environment CPython3.7.3.final.0-64 in 96ms
  creator CPython3Posix(dest=/home/hong/tmp/.tox/py37, clear=False, no_vcs_ignore=False, global=False)                                                                                       
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/hong/.local/share/virtualenv)                                                 
    added seed packages: pip==20.2.4, setuptools==50.3.2, wheel==0.35.1
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator                                                                                  
py37 finish: getenv /home/hong/tmp/.tox/py37 after 0.19 seconds
py37 start: finishvenv 
write config to /home/hong/tmp/.tox/py37/.tox-config1 as '5f8e8a5d1e023e5a01236b137b5ca07f40f6a7988f458530746dff8657089386 /usr/bin/python3\n3.20.1 0 0 0'                                   
py37 finish: finishvenv  after 0.01 seconds
py37 start: envreport 
setting PATH=/home/hong/tmp/.tox/py37/bin:/home/hong/tmp/.tox/py37/bin:/home/hong/.gem/ruby/2.5.0/bin:/home/hong/.emacs.d/el-get/rtags/bin:/home/hong/.local/opt/emacs/bin:/home/hong/.local/bin:/home/hong/.zplug/bin:/home/hong/.local/bin:/home/hong/.local/opt/emacs/bin:/home/hong/.local/opt/gnucash/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin          
[4014] /home/hong/tmp$ /home/hong/tmp/.tox/py37/bin/python -m pip freeze >.tox/py37/log/py37-0.log                                                                                           
py37 finish: envreport  after 0.33 seconds
py37 installed: 
py37 start: run-test-pre 
py37 run-test-pre: PYTHONHASHSEED='3283844689'
py37 finish: run-test-pre  after 0.00 seconds
py37 start: run-test 
py37 finish: run-test  after 0.00 seconds
py37 start: run-test-post 
py37 finish: run-test-post  after 0.00 seconds
__________________________________________ summary ___________________________________________
  py37: commands succeeded
  congratulations :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions