build: manage Python tools with uv
This commit is contained in:
parent
4c8371bb44
commit
2da15b4356
4 changed files with 923 additions and 182 deletions
12
devbox.json
12
devbox.json
|
|
@ -3,12 +3,10 @@
|
|||
"packages": [
|
||||
"arduino-cli@latest",
|
||||
"path:./nix#quartus",
|
||||
"python312@latest",
|
||||
"python312Packages.pyserial@latest",
|
||||
"python312Packages.numpy@latest",
|
||||
"iverilog@latest",
|
||||
"rustc@latest",
|
||||
"cargo@latest"
|
||||
"cargo@latest",
|
||||
"uv@latest"
|
||||
],
|
||||
"shell": {
|
||||
"init_hook": [
|
||||
|
|
@ -33,7 +31,7 @@
|
|||
"cd fpga/src && quartus_sh --flow compile strix"
|
||||
],
|
||||
"image": [
|
||||
"python3 tools/vidor_image.py fpga/src/output_files/strix.ttf arduino/libraries/StrixFPGA/src"
|
||||
"uv run tools/vidor_image.py fpga/src/output_files/strix.ttf arduino/libraries/StrixFPGA/src"
|
||||
],
|
||||
"build-capture": [
|
||||
"arduino-cli compile --fqbn arduino:samd:mkrvidor4000 --libraries arduino/libraries arduino/strix_capture"
|
||||
|
|
@ -45,13 +43,13 @@
|
|||
"arduino-cli upload --fqbn arduino:samd:mkrvidor4000 -p ${PORT:-/dev/ttyACM0} arduino/strix_capture"
|
||||
],
|
||||
"api-check": [
|
||||
"python3 tools/api_check.py --port ${PORT:-/dev/ttyACM0}"
|
||||
"uv run tools/api_check.py --port ${PORT:-/dev/ttyACM0}"
|
||||
],
|
||||
"onod-build": [
|
||||
"cargo build --release --manifest-path ${ONOD3000_DIR:-$HOME/Projects/randonautica/code/onod3000}/Cargo.toml --target-dir .build/onod3000"
|
||||
],
|
||||
"jitter": [
|
||||
"python3 tools/jitter.py --port ${PORT:-/dev/ttyACM0} --out captures \"$@\""
|
||||
"uv run tools/jitter.py --port ${PORT:-/dev/ttyACM0} --out captures \"$@\""
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue