-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 1.35 KB
/
Makefile
File metadata and controls
44 lines (34 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL := /bin/bash
# lerobot is tracked as a git submodule
LEROBOT_PATH ?= lerobot
.PHONY: install install-full dev test build-frontend clean help
## install: Init submodule + install both (editable, no-deps for lerobot)
install:
git submodule update --init "$(LEROBOT_PATH)"
pip install --no-deps -e "$(LEROBOT_PATH)"
pip install -e .
## install-full: Same as install but resolves all lerobot dependencies (may change torch)
install-full:
git submodule update --init "$(LEROBOT_PATH)"
pip install -e "$(LEROBOT_PATH)"
pip install -e .
## dev: Init submodule + install with dev dependencies (no-deps for lerobot)
dev:
git submodule update --init "$(LEROBOT_PATH)"
pip install --no-deps -e "$(LEROBOT_PATH)"
pip install -e ".[dev]"
## build-frontend: Build the React frontend
build-frontend:
cd frontend && npm ci && npm run build
## test: Run unit tests (no hardware required)
test:
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -q -m "not smoke_hw" tests
## test-hw: Run hardware smoke tests (requires physical devices)
test-hw:
LESTUDIO_RUN_HW_SMOKE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -q -m "smoke_hw" tests/smoke_hw
## clean: Remove build artifacts and caches
clean:
rm -rf build dist *.egg-info src/*.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
help:
@grep -E '^##' Makefile | sed 's/## / /'