fix scripts/mypy*
Broken in switch to rules_python
This commit is contained in:
parent
3843a4509e
commit
aa9a79a545
@ -14,7 +14,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
workspace = Path(os.environ["BUILD_WORKSPACE_DIRECTORY"])
|
workspace = Path(os.environ["BUILD_WORKSPACE_DIRECTORY"])
|
||||||
binroot = workspace / "bazel-bin"
|
binroot = workspace / "bazel-bin"
|
||||||
pyroot = binroot / "pip"
|
dmypy_bin = binroot / "external/py_deps_pypi__mypy/rules_python_wheel_entry_point_dmypy"
|
||||||
|
|
||||||
if sys.platform.startswith("win32"):
|
if sys.platform.startswith("win32"):
|
||||||
binext = ".exe"
|
binext = ".exe"
|
||||||
@ -23,7 +23,7 @@ else:
|
|||||||
|
|
||||||
if subprocess.run(
|
if subprocess.run(
|
||||||
[
|
[
|
||||||
str(pyroot / ("dmypy" + binext)),
|
str(dmypy_bin) + binext,
|
||||||
]
|
]
|
||||||
+ [
|
+ [
|
||||||
"run",
|
"run",
|
||||||
@ -33,7 +33,7 @@ if subprocess.run(
|
|||||||
"bazel-bin/qt/dmypy.runfiles/ankidesktop/pylib/anki",
|
"bazel-bin/qt/dmypy.runfiles/ankidesktop/pylib/anki",
|
||||||
"bazel-bin/qt/dmypy.runfiles/ankidesktop/qt/aqt",
|
"bazel-bin/qt/dmypy.runfiles/ankidesktop/qt/aqt",
|
||||||
"--python-executable",
|
"--python-executable",
|
||||||
os.path.abspath("pip/stubs/extendsitepkgs"),
|
os.path.abspath("python/stubs/extendsitepkgs"),
|
||||||
],
|
],
|
||||||
env={
|
env={
|
||||||
"MYPYPATH": "bazel-bin/qt/dmypy.runfiles/pyqt6",
|
"MYPYPATH": "bazel-bin/qt/dmypy.runfiles/pyqt6",
|
||||||
|
Loading…
Reference in New Issue
Block a user