From 73b7de0a7562578851b0ff232f736ddad9027e5c Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Tue, 4 Jan 2022 22:46:45 +0100 Subject: [PATCH] fix: remove warnings on macOS when installing certificates (#979) --- cibuildwheel/macos.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index ce2f427e..e103247a 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -128,7 +128,9 @@ def install_cpython(version: str, url: str) -> Path: download(url, Path("/tmp/Python.pkg")) # install call(["sudo", "installer", "-pkg", "/tmp/Python.pkg", "-target", "/"]) - call(["sudo", str(installation_bin_path / python_executable), str(install_certifi_script)]) + env = os.environ.copy() + env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1" + call([str(installation_bin_path / python_executable), str(install_certifi_script)], env=env) pip_executable = "pip3" make_symlinks(installation_bin_path, python_executable, pip_executable)