From 88ccd47c88dc39b8d746afae89dea31d46558a68 Mon Sep 17 00:00:00 2001 From: Spyros Trigazis Date: Sun, 24 Jul 2016 22:13:57 +0200 Subject: [PATCH] Keep old behavior of setuptools for editable installs In the 25.0.0 release [1] of setuptools during any install operation the package in not overwritten. If a package is installed from another requirement via pip and then it is installed again from git, it is not updated causing check_libs_from_git to fail. [1] https://setuptools.readthedocs.io/en/latest/history.html#v25-0-0 Change-Id: Ibaa1d4157816ea649f4452756fbde25951347001 Closes-Bug: #1605998 --- inc/python | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/python b/inc/python index e013dfab36..9de2831537 100644 --- a/inc/python +++ b/inc/python @@ -148,11 +148,15 @@ function pip_install { fi $xtrace + # adding SETUPTOOLS_SYS_PATH_TECHNIQUE is a workaround to keep + # the same behaviour of setuptools before version 25.0.0. + # related issue: https://github.com/pypa/pip/issues/3874 $sudo_pip \ http_proxy="${http_proxy:-}" \ https_proxy="${https_proxy:-}" \ no_proxy="${no_proxy:-}" \ PIP_FIND_LINKS=$PIP_FIND_LINKS \ + SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite \ $cmd_pip $upgrade \ $@ result=$?