mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
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:
parent
c51b1c7180
commit
366d5ca9e3
2 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
]
|
||||
|
|
|
@ -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,
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue