diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2019-01-26 23:03:59 +0100 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2019-01-26 23:47:33 +0100 |
commit | 3fc1e22cc2bf43d0266b9193e024c2e9e722a600 (patch) | |
tree | 20e319af0e16ad015bff8f81cd778322226d63b1 | |
parent | f8b9c426b4b3bd074ecfac71026af23a8a41b0dc (diff) | |
download | python-setuptools-git-3fc1e22cc2bf43d0266b9193e024c2e9e722a600.tar.gz |
tests: temporary pin pip to fix the Python 2.7 job
-rw-r--r-- | tests/requirements.txt | 1 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/requirements.txt b/tests/requirements.txt index d301168a..f944df27 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -10,3 +10,4 @@ coverage>=4.5.1 pytest-cov>=2.5.1 paver; python_version>="3.6" futures; python_version=="2.7" +pip==18.1 # Temporary workaround for #1644. @@ -12,7 +12,7 @@ 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} +install_command=python -c 'import sys; sys.path.remove(""); from pkg_resources import load_entry_point; load_entry_point("pip", "console_scripts", "pip")()' install {opts} {packages} # Same as above. list_dependencies_command={envbindir}/pip freeze setenv=COVERAGE_FILE={toxworkdir}/.coverage.{envname} |