From be4c24cc7e53983a602f67305e1b5765c473b0e7 Mon Sep 17 00:00:00 2001 From: Michael Lewin Date: Mon, 8 Oct 2018 16:55:50 +0100 Subject: [PATCH] force pip version to 18.0 - workaround for https://github.com/pypa/pipenv/issues/2924 --- keanu-python/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/keanu-python/build.gradle b/keanu-python/build.gradle index 3f1406ca0..03b2e95c1 100644 --- a/keanu-python/build.gradle +++ b/keanu-python/build.gradle @@ -12,9 +12,22 @@ task pytest { exec { commandLine 'pip', 'install', 'pipenv' } + exec { + // temporary workaround for https://github.com/pypa/pipenv/issues/2924 + // (pip 18.1 broke pipenv) + commandLine 'pipenv', 'run', 'pip', 'install', 'pip==18.0', '--three' + } exec { commandLine 'pipenv', 'install', '--dev', '--three' } + exec { + // NB: the python version inside pipenv is not necessarily the same as the version outside pipenv + commandLine 'pipenv', 'run', 'python', '--version' + } + exec { + // NB: the pip version inside pipenv is not necessarily the same as the version outside pipenv + commandLine 'pipenv', 'run', 'pip', '--version' + } exec { commandLine 'pipenv', 'run', 'pytest' }