Skip to content

Commit

Permalink
Allow path without poetry in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Apr 26, 2024
1 parent 575915b commit de4205d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: tests

export PATH := $(shell poetry run which python | xargs dirname):$(PATH)
POETRY_PATH := $(shell command -v poetry && poetry run which python | xargs dirname || echo "")
export PATH := $(if $(POETRY_PATH),$(POETRY_PATH):$(PATH),$(PATH))

build-cpu:
docker build -t lerobot:latest -f docker/lerobot-cpu/Dockerfile .
Expand Down

0 comments on commit de4205d

Please sign in to comment.