From 237d9d76ee0e3d49d8ddab7ae2602cc12e65dc04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Mon, 13 Jan 2020 22:12:58 +0100 Subject: [PATCH] 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 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 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 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2d52649..73d8c70 100644 --- a/Makefile +++ b/Makefile @@ -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