Running 'pip install --upgrade setuptools' with 'sudo' on macOS, fixing #122

This commit is contained in:
Yannick Jadoul
2019-01-30 17:36:17 +01:00
parent c6f4f01732
commit d79ca07bbb
+2 -1
View File
@@ -86,7 +86,8 @@ def build(project_dir, output_dir, test_command, test_requires, before_build, bu
# install pip & wheel
call(['python', get_pip_script, '--no-setuptools', '--no-wheel'], env=env)
call(['pip', '--version'], env=env)
call(['pip', 'install', '--upgrade', 'setuptools'], env=env)
# sudo required, because the removal of the old version of setuptools might cause problems with newer pip versions (see issue #122)
call(['sudo', 'pip', 'install', '--upgrade', 'setuptools'], env=env)
call(['pip', 'install', 'wheel'], env=env)
call(['pip', 'install', 'delocate'], env=env)