replace some bazel-bin references in our scripts
+ fix scripts/mypy-watch, and make it only listen to change events
This commit is contained in:
parent
f4ec3bb84a
commit
e986304592
10
qt/dmypy.py
10
qt/dmypy.py
@ -13,8 +13,8 @@ import time
|
||||
from pathlib import Path
|
||||
|
||||
workspace = Path(os.environ["BUILD_WORKSPACE_DIRECTORY"])
|
||||
binroot = workspace / "bazel-bin"
|
||||
dmypy_bin = binroot / "external/py_deps_pypi__mypy/rules_python_wheel_entry_point_dmypy"
|
||||
binroot = workspace / "../bazel/anki/bin"
|
||||
dmypy_bin = binroot / "external/py_deps_mypy/rules_python_wheel_entry_point_dmypy"
|
||||
|
||||
if sys.platform.startswith("win32"):
|
||||
binext = ".exe"
|
||||
@ -30,13 +30,13 @@ if subprocess.run(
|
||||
"--",
|
||||
"--config-file",
|
||||
"qt/mypy.ini",
|
||||
"bazel-bin/qt/dmypy.runfiles/ankidesktop/pylib/anki",
|
||||
"bazel-bin/qt/dmypy.runfiles/ankidesktop/qt/aqt",
|
||||
"../bazel/anki/bin/qt/dmypy.runfiles/ankidesktop/pylib/anki",
|
||||
"../bazel/anki/bin/qt/dmypy.runfiles/ankidesktop/qt/aqt",
|
||||
"--python-executable",
|
||||
os.path.abspath("python/stubs/extendsitepkgs"),
|
||||
],
|
||||
env={
|
||||
"MYPYPATH": "bazel-bin/qt/dmypy.runfiles/pyqt6",
|
||||
"MYPYPATH": "../bazel/anki/bin/qt/dmypy.runfiles/pyqt6",
|
||||
"EXTRA_SITE_PACKAGES": os.path.abspath(os.getenv("EXTRA_SITE_PACKAGES")),
|
||||
},
|
||||
cwd=workspace,
|
||||
|
@ -9,4 +9,4 @@ test -e WORKSPACE || (
|
||||
|
||||
rm -rf bazel-dist
|
||||
bazel build --config opt dist
|
||||
tar xvf bazel-bin/dist.tar
|
||||
tar xvf ../bazel/anki/bin/dist.tar
|
||||
|
@ -9,4 +9,4 @@ rd /s /q bazel-dist
|
||||
|
||||
set BUILDARGS=-k -c opt dist --color=yes
|
||||
call .\bazel build %BUILDARGS% || exit /b 1
|
||||
tar xvf bazel-bin\dist.tar || exit /b 1
|
||||
tar xvf ..\bazel\anki\bin\dist.tar || exit /b 1
|
||||
|
@ -8,4 +8,4 @@ cmd='printf \\033c\\n; bazel run qt:dmypy'
|
||||
sh -c "$cmd"
|
||||
|
||||
# then monitor for changes
|
||||
fswatch -r -o pylib qt | xargs -n1 -I{} sh -c "$cmd"
|
||||
fswatch -r -o --event Updated pylib qt | xargs -n1 -I{} sh -c "$cmd"
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
SASS_PATH=ts/sass:$(pwd)/bazel-bin/ts/sass \
|
||||
SASS_PATH=ts/sass:$(pwd)/../bazel/anki/bin/ts/sass \
|
||||
node_modules/.bin/svelte-check \
|
||||
--workspace ts
|
||||
|
@ -6,6 +6,6 @@
|
||||
# The pages can be accessed by, eg surfing to
|
||||
# http://localhost:40000/_anki/pages/deckconfig.html
|
||||
|
||||
ANKI_DATA_FOLDER=$(pwd)/bazel-bin/qt/aqt \
|
||||
ANKI_DATA_FOLDER=$(pwd)/../bazel/anki/bin/qt/aqt \
|
||||
QTWEBENGINE_REMOTE_DEBUGGING=8080 \
|
||||
ANKI_API_PORT=40000 ANKIDEV=1 ./run $*
|
||||
|
@ -36,7 +36,7 @@
|
||||
"rootDirs": [
|
||||
".",
|
||||
// for VS code
|
||||
"../bazel-bin/ts"
|
||||
"../../bazel/anki/bin/ts"
|
||||
],
|
||||
"baseUrl": ".",
|
||||
"paths": {},
|
||||
|
Loading…
Reference in New Issue
Block a user