Attempt to pin setuptools/pip to fix CI

We are facing the following issues in CI:

    $ ./dist/tutor --version
    [5201] Failed to execute script pyi_rth_pkgres
    Traceback (most recent call last):
      File "site-packages/PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 13, in <module>
      File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module
          exec(bytecode, module.__dict__)
      File "site-packages/pkg_resources/__init__.py", line 86, in <module>
      ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
    make: *** [ci-bundle] Error 255

And:

    $ make ci-install-python-requirements
    ...
    c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
This commit is contained in:
Régis Behmo 2020-01-13 22:12:58 +01:00
parent 460a7dfc79
commit 237d9d76ee
1 changed files with 3 additions and 2 deletions

View File

@ -74,11 +74,12 @@ ci-install-alpine-requirements: ## Install requirements for a python:alpine imag
apk add --no-cache docker gcc musl-dev yaml-dev
ci-install-python-requirements: ## Install requirements
pip3 install -U setuptools pip
pip3 install --upgrade pip
pip3 install setuptools==44.0.0
python3 setup.py install
pip3 install -r requirements/dev.txt
ci-install-plugins: ci-install-python-requirements ## Install alll supported plugins
ci-install-plugins: ci-install-python-requirements ## Install all supported plugins
pip3 install -r requirements/plugins.txt
ci-bundle: bundle ## Create bundle and run basic tests