diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-08-14 10:35:41 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-08-14 10:35:41 -0400 |
commit | 6e3aa8d19eab0e984b1d2a2494f468fcad6bd798 (patch) | |
tree | 90d2b4810d4f14374080a7eb92bb8defb873cb3b /setuptools/tests/test_virtualenv.py | |
parent | 4837f218ea05a304880f8448e27fe0affad3a1a5 (diff) | |
download | python-setuptools-git-bugfix/2232-just-break-pip-upgrade.tar.gz |
Fix test failures by disabling eager supplying of distutils when upgrading setuptools through pip.bugfix/2232-just-break-pip-upgrade
Diffstat (limited to 'setuptools/tests/test_virtualenv.py')
-rw-r--r-- | setuptools/tests/test_virtualenv.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index 555273ae..8b7a8b4e 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -119,6 +119,9 @@ def test_pip_upgrade_from_source(pip_version, virtualenv): wheel = glob.glob(os.path.join(dist_dir, '*.whl'))[0] # Then update from wheel. virtualenv.run('pip install ' + wheel) + # As reported in pypa/pip#8761, pip cannot handle an upgrade when + # setuptools supplies distutils. + virtualenv.env['SETUPTOOLS_USE_DISTUTILS'] = 'stdlib' # And finally try to upgrade from source. virtualenv.run('pip install --no-cache-dir --upgrade ' + sdist) |