mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Make PYTHONPYCACHEPREFIX point to an absolute path (#4111)
This commit is contained in:
parent
ae6cf98f40
commit
fdce765861
1 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue