linux: use Python 3.9 in before_all (#2043)
Also use Python 3.9 for utility python in oci_container.
This commit is contained in:
@@ -180,7 +180,7 @@ def build_in_container(
|
|||||||
log.step("Running before_all...")
|
log.step("Running before_all...")
|
||||||
|
|
||||||
env = container.get_environment()
|
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_DISABLE_PIP_VERSION_CHECK"] = "1"
|
||||||
env["PIP_ROOT_USER_ACTION"] = "ignore"
|
env["PIP_ROOT_USER_ACTION"] = "ignore"
|
||||||
env = before_all_options.environment.as_dictionary(
|
env = before_all_options.environment.as_dictionary(
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ class OCIContainer:
|
|||||||
... print(self.debug_info())
|
... print(self.debug_info())
|
||||||
"""
|
"""
|
||||||
|
|
||||||
UTILITY_PYTHON = "/opt/python/cp38-cp38/bin/python"
|
UTILITY_PYTHON = "/opt/python/cp39-cp39/bin/python"
|
||||||
|
|
||||||
process: PopenBytes
|
process: PopenBytes
|
||||||
bash_stdin: IO[bytes]
|
bash_stdin: IO[bytes]
|
||||||
|
|||||||
Reference in New Issue
Block a user