Merge pull request #123 from YannickJadoul/fix-issue-122

Running 'pip install --upgrade setuptools' with 'sudo' on macOS, fixing #122
This commit is contained in:
Joe Rickerby
2019-02-03 21:37:57 +00:00
committed by GitHub
+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)