]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/setup-virtualenv.sh: pass --use-feature=2020-resolver to pip
authorKefu Chai <kchai@redhat.com>
Thu, 8 Oct 2020 07:13:36 +0000 (15:13 +0800)
committerBrad Hubbard <bhubbard@redhat.com>
Wed, 12 May 2021 23:21:19 +0000 (09:21 +1000)
commitc880cef9b28f264db707cb354889875bb95c8f35
tree79c1dbfa566617db61a9cf86c1a252d8cf40cbe9
parentb74ed9d6fb85cf417b539e90527337c03ef7b197
tools/setup-virtualenv.sh: pass --use-feature=2020-resolver to pip

as long as pip supports this option, pass it to `pip install`

to silence warnings and errors like:

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

autopep8 1.5.4 requires pycodestyle>=2.6.0, but you'll have pycodestyle 2.5.0 which is incompatible.
pytest-cov 2.10.1 requires pytest>=4.6, but you'll have pytest 3.10.1 which is incompatible.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit fa9e2bfd4b3648f08ed3a88ce737d432ab97cce1)
src/tools/setup-virtualenv.sh