From d79ca07bbbb1f515f706ab17b25d6ec1b5f95329 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Wed, 30 Jan 2019 17:15:17 +0100 Subject: [PATCH] Running 'pip install --upgrade setuptools' with 'sudo' on macOS, fixing #122 --- cibuildwheel/macos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 5ef450a1d..a62aadd08 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -86,7 +86,8 @@ def call(args, env=None, cwd=None, shell=False): # 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)