diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 4462c7818..c1dfc87c6 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -70,6 +70,7 @@ 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) call([pip, 'install', 'wheel'], env=env) call([pip, 'install', 'delocate'], env=env) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 29e1ebb94..299e160de 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -74,6 +74,7 @@ def shell(args, env=None, cwd=None): # prepare the Python environment shell(['python', '-m', 'pip', 'install', '--upgrade', 'pip'], env=env) + shell(['pip', 'install', '--upgrade', 'setuptools'], env=env) shell(['pip', 'install', 'wheel'], env=env) # run the before_build command