Browse code

Merge "Keep old behavior of setuptools for editable installs"

Jenkins authored on 2016/07/26 09:04:10
Showing 1 changed files
... ...
@@ -148,11 +148,15 @@ function pip_install {
148 148
     fi
149 149
 
150 150
     $xtrace
151
+    # adding SETUPTOOLS_SYS_PATH_TECHNIQUE is a workaround to keep
152
+    # the same behaviour of setuptools before version 25.0.0.
153
+    # related issue: https://github.com/pypa/pip/issues/3874
151 154
     $sudo_pip \
152 155
         http_proxy="${http_proxy:-}" \
153 156
         https_proxy="${https_proxy:-}" \
154 157
         no_proxy="${no_proxy:-}" \
155 158
         PIP_FIND_LINKS=$PIP_FIND_LINKS \
159
+        SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite \
156 160
         $cmd_pip $upgrade \
157 161
         $@
158 162
     result=$?