experiment with mypy cache

Speeds things up in the small change case; remains to be seen whether
this will be robust or will introduce caching issues or other problems.
This commit is contained in:
Damien Elmes 2021-12-10 10:46:38 +10:00
parent c51b1c7180
commit 366d5ca9e3
2 changed files with 10 additions and 0 deletions

View file

@ -4,6 +4,8 @@
import os
import subprocess
import sys
import tempfile
from pathlib import Path
if __name__ == "__main__":
(module, ini, extendsitepkgs) = sys.argv[1:]
@ -21,6 +23,9 @@ if __name__ == "__main__":
module,
"--config-file",
ini,
"--cache-dir",
Path(tempfile.gettempdir()) / ".mypy-anki-qt",
"--sqlite-cache",
"--python-executable",
extendsitepkgs,
]

View file

@ -4,6 +4,8 @@
import os
import subprocess
import sys
import tempfile
from pathlib import Path
if __name__ == "__main__":
(module, ini, pyqt_init, extendsitepkgs) = sys.argv[1:]
@ -31,6 +33,9 @@ if __name__ == "__main__":
module,
"--config-file",
ini,
"--cache-dir",
Path(tempfile.gettempdir()) / ".mypy-anki-qt",
"--sqlite-cache",
"--python-executable",
extendsitepkgs,
]