diff options
| author | Benoit Pierre <benoit.pierre@gmail.com> | 2018-08-11 19:06:46 +0200 |
|---|---|---|
| committer | Benoit Pierre <benoit.pierre@gmail.com> | 2018-08-11 19:44:25 +0200 |
| commit | 79d2a47528a35c3c955e117b3912fe0ac7dc36e2 (patch) | |
| tree | 97d5f78b1452d939b38e57e03a27a3fcae513501 /tox.ini | |
| parent | 9755c3bc2bf1fe50bf67dccb583ffad9d57f7bab (diff) | |
| download | external_python_setuptools-79d2a47528a35c3c955e117b3912fe0ac7dc36e2.tar.gz external_python_setuptools-79d2a47528a35c3c955e117b3912fe0ac7dc36e2.tar.bz2 external_python_setuptools-79d2a47528a35c3c955e117b3912fe0ac7dc36e2.zip | |
tox: fix configuration so newer tox versions are supported
Starting with tox 3.2.0, the commands for installing/listing
dependencies changed from pip to python -m pip, which is problematic
as this will leave bits of the previous (from the virtualenv creation)
older version of setuptools installed in the site-packages directory
because from pip's point of view, the active setuptools version is the
one in the current directory (which cannot be uninstalled).
Fix #1453.
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -9,6 +9,12 @@ envlist=python [testenv] deps=-rtests/requirements.txt +# Changed from default (`python -m pip ...`) +# to prevent the current working directory +# from being added to `sys.path`. +install_command={envbindir}/pip install {opts} {packages} +# Same as above. +list_dependencies_command={envbindir}/pip freeze setenv=COVERAGE_FILE={toxworkdir}/.coverage.{envname} # TODO: The passed environment variables came from copying other tox.ini files # These should probably be individually annotated to explain what needs them. |
