Temporary fix build for setuptools 50.0.0

Not having this option is creating an error:
   SystemError: Parent module 'setuptools' not loaded,
   cannot perform relative import

See https://travis-ci.org/github/PyCQA/pylint/jobs/722843170:

It isn't clear what a permanent fix could be. See
https://github.com/pypa/setuptools/issues/2232 and
17cb9d6bf2/CHANGES.rst (v5000)
for details.
This commit is contained in:
Pierre Sassoulas 2020-08-31 21:43:24 +02:00
parent 5b6844186f
commit 2261844748

View File

@ -35,6 +35,9 @@ before_install:
- sudo apt-get -qq update
- sudo apt-get install -y enchant
install:
# Temporary escape hatch for setuptools 50.0:
# See https://github.com/pypa/setuptools/blob/17cb9d6bf249cefe653d3bdb712582409035a7db/CHANGES.rst#v5000
- export SETUPTOOLS_USE_DISTUTILS=stdlib
- pip install -U setuptools
- pip install tox coverage coveralls
- virtualenv --version