From 5b7119ecef7d6f65045df0a7796ec74076ec405c Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Thu, 17 Oct 2024 07:25:09 +0200 Subject: [PATCH] linux: use Python 3.9 in before_all (#2043) Also use Python 3.9 for utility python in oci_container. --- cibuildwheel/linux.py | 2 +- cibuildwheel/oci_container.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index ce6b930d..9af58c9d 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -180,7 +180,7 @@ def build_in_container( log.step("Running before_all...") env = container.get_environment() - env["PATH"] = f'/opt/python/cp38-cp38/bin:{env["PATH"]}' + env["PATH"] = f'/opt/python/cp39-cp39/bin:{env["PATH"]}' env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1" env["PIP_ROOT_USER_ACTION"] = "ignore" env = before_all_options.environment.as_dictionary( diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index a93079f1..15b6596c 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -168,7 +168,7 @@ class OCIContainer: ... print(self.debug_info()) """ - UTILITY_PYTHON = "/opt/python/cp38-cp38/bin/python" + UTILITY_PYTHON = "/opt/python/cp39-cp39/bin/python" process: PopenBytes bash_stdin: IO[bytes]