Skip to content

Commit 73b7de0

Browse files
authored
fix: remove warnings on macOS when installing certificates (#979)
1 parent 45e5768 commit 73b7de0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cibuildwheel/macos.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ def install_cpython(version: str, url: str) -> Path:
128128
download(url, Path("/tmp/Python.pkg"))
129129
# install
130130
call(["sudo", "installer", "-pkg", "/tmp/Python.pkg", "-target", "/"])
131-
call(["sudo", str(installation_bin_path / python_executable), str(install_certifi_script)])
131+
env = os.environ.copy()
132+
env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1"
133+
call([str(installation_bin_path / python_executable), str(install_certifi_script)], env=env)
132134

133135
pip_executable = "pip3"
134136
make_symlinks(installation_bin_path, python_executable, pip_executable)

0 commit comments

Comments
 (0)