From a6ff55ed5b03cb60be2f45a271d66b86178e21a2 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 5 Jan 2021 17:37:55 +0000 Subject: [PATCH] Update pip in the test virtualenv --- cibuildwheel/macos.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index dc5044d1..e246b19a 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -401,6 +401,12 @@ def build(options: BuildOptions) -> None: # check that we are using the Python from the virtual environment call_with_arch(['which', 'python'], env=virtualenv_env) + # ensure we have a recent enough pip in the virtualenv + # TODO(joerick): remove this before merge? virtualenv should be bundling a + # recent enough seed version. Waiting on this PR: + # https://github.com/pypa/virtualenv/pull/2036 + call_with_arch(['pip', 'install', 'pip>=20.3.3'], env=virtualenv_env) + if options.before_test: before_test_prepared = prepare_command(options.before_test, project='.', package=options.package_dir) call_with_arch(before_test_prepared, env=virtualenv_env, shell=True)