Make PYTHONPYCACHEPREFIX point to an absolute path (#4111)

This commit is contained in:
Abdo 2025-06-27 12:36:27 +03:00 committed by GitHub
parent ae6cf98f40
commit fdce765861
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,7 +67,10 @@ pub fn run_build(args: BuildArgs) {
"MYPY_CACHE_DIR", "MYPY_CACHE_DIR",
build_root.join("tests").join("mypy").into_string(), build_root.join("tests").join("mypy").into_string(),
) )
.env("PYTHONPYCACHEPREFIX", build_root.join("pycache")) .env(
"PYTHONPYCACHEPREFIX",
std::path::absolute(build_root.join("pycache")).unwrap(),
)
// commands will not show colors by default, as we do not provide a tty // commands will not show colors by default, as we do not provide a tty
.env("FORCE_COLOR", "1") .env("FORCE_COLOR", "1")
.env("MYPY_FORCE_COLOR", "1") .env("MYPY_FORCE_COLOR", "1")