mirror of
https://github.com/D-Modem/courier-emu.git
synced 2026-11-28 20:38:07 -08:00
The README asked for a virtualenv and a pip install before anything would run, and the install it named was non-editable, which drops native/ from the installed package and breaks dsp-run from any directory but the repository root. ./courier creates and updates its own environment on first use and then costs about 80 ms per invocation. It reinstalls when pyproject.toml moves, prefers uv when that is present, and installs editable so the C5x sources stay reachable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
18 lines
344 B
Makefile
18 lines
344 B
Makefile
VENV ?= .venv
|
|
PYTHON = $(VENV)/bin/python
|
|
|
|
.PHONY: setup test clean-venv clean-build
|
|
|
|
# Create the virtualenv and install every extra, without running the CLI.
|
|
setup:
|
|
@./courier --help >/dev/null
|
|
|
|
test: setup
|
|
$(PYTHON) -m unittest discover -s tests -v
|
|
|
|
clean-venv:
|
|
rm -rf $(VENV)
|
|
|
|
clean-build:
|
|
rm -rf .build build dist courier_emu.egg-info
|