File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,17 @@ init_venv_python() {
179
179
debugging " ERROR: failed to install python package (attempting to install via 'sudo pip install virtualenv')"
180
180
if ! (sudo pip${pyver} install virtualenv --user --ignore-installed > /dev/null 2>&1 ); then
181
181
assert " Please install the 'virtualenv' module using 'pip install virtualenv'"
182
+ else
183
+ # Fix setuptools to be below a certain version to workaround this issue
184
+ # https://github.com/pypa/setuptools/issues/2352
185
+ debugging " INFO: sudo pip${pyver} install setuptools<50.0 --force-reinstall > /dev/null 2>&1"
186
+ sudo pip${pyver} install " setuptools<50.0" --force-reinstall > /dev/null 2>&1
182
187
fi
188
+ else
189
+ # Fix setuptools to be below a certain version to workaround this issue
190
+ # https://github.com/pypa/setuptools/issues/2352
191
+ debugging " INFO: ${local_pip}${pyver} install setuptools<50.0 --force-reinstall > /dev/null 2>&1"
192
+ sudo ${local_pip}${pyver} install " setuptools<50.0" --force-reinstall > /dev/null 2>&1
183
193
fi
184
194
fi
185
195
debugging " INFO: ${local_virtualenv} -p python${pyver} --system-site-packages ${venv} > /dev/null 2>&1"
420
430
fi
421
431
422
432
stdout_log " Upgrading pip"
423
- if ! (${venv_python} -m pip install --upgrade --ignore-installed pip setuptools wheel >> ${log_file} 2>&1 ); then
433
+ # Fix setuptools to be below a certain version to workaround this issue
434
+ # https://github.com/pypa/setuptools/issues/2352
435
+ if ! (${venv_python} -m pip install --upgrade --ignore-installed pip " setuptools<50.0" wheel >> ${log_file} 2>&1 ); then
424
436
assert " Pip upgrade failed" ; fi
425
437
debugging " pip install express-cli completed"
426
438
You can’t perform that action at this time.
0 commit comments