Display sys.executable names in check system jobs (#14656)

Cherry-picked from https://github.com/astral-sh/uv/pull/14652

This is useful for debugging
This commit is contained in:
Zanie Blue 2025-07-16 09:17:01 -05:00 committed by GitHub
parent eaff96e5dc
commit 1f49fbd53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ def install_package(*, uv: str, package: str):
check=True,
)
logging.info(f"Checking that `{package}` can be imported.")
logging.info(f"Checking that `{package}` can be imported with `{sys.executable}`.")
code = subprocess.run(
[sys.executable, "-c", f"import {package}"],
cwd=temp_dir,
@ -82,7 +82,9 @@ if __name__ == "__main__":
)
# Ensure that the package (`pylint`) is installed.
logging.info("Checking that `pylint` is installed.")
logging.info(
f"Checking that `pylint` is installed with `{sys.executable} -m pip`."
)
code = subprocess.run(
[sys.executable, "-m", "pip", "show", "pylint"],
cwd=temp_dir,