mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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 os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import tempfile
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
(module, ini, extendsitepkgs) = sys.argv[1:]
|
(module, ini, extendsitepkgs) = sys.argv[1:]
|
||||||
|
@ -21,6 +23,9 @@ if __name__ == "__main__":
|
||||||
module,
|
module,
|
||||||
"--config-file",
|
"--config-file",
|
||||||
ini,
|
ini,
|
||||||
|
"--cache-dir",
|
||||||
|
Path(tempfile.gettempdir()) / ".mypy-anki-qt",
|
||||||
|
"--sqlite-cache",
|
||||||
"--python-executable",
|
"--python-executable",
|
||||||
extendsitepkgs,
|
extendsitepkgs,
|
||||||
]
|
]
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import tempfile
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
(module, ini, pyqt_init, extendsitepkgs) = sys.argv[1:]
|
(module, ini, pyqt_init, extendsitepkgs) = sys.argv[1:]
|
||||||
|
@ -31,6 +33,9 @@ if __name__ == "__main__":
|
||||||
module,
|
module,
|
||||||
"--config-file",
|
"--config-file",
|
||||||
ini,
|
ini,
|
||||||
|
"--cache-dir",
|
||||||
|
Path(tempfile.gettempdir()) / ".mypy-anki-qt",
|
||||||
|
"--sqlite-cache",
|
||||||
"--python-executable",
|
"--python-executable",
|
||||||
extendsitepkgs,
|
extendsitepkgs,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue