Skip to content

chore(build): avoid unnecessary venv rebuild on every make invocation#1553

Open
jpnurmi wants to merge 1 commit intomasterfrom
jpnurmi/chore/make-venv-stamp
Open

chore(build): avoid unnecessary venv rebuild on every make invocation#1553
jpnurmi wants to merge 1 commit intomasterfrom
jpnurmi/chore/make-venv-stamp

Conversation

@jpnurmi
Copy link
Collaborator

@jpnurmi jpnurmi commented Mar 4, 2026

Problem: make style, make format, etc. re-ran pip install on every invocation because .venv/bin/python is a symlink — make resolves it and sees the system Python's mtime, which is older than Makefile, so the target is perpetually out-of-date.

Fix: use a .venv/.stamp file as the make target instead.

.venv/bin/python is a symlink whose resolved mtime never updates,
causing make to always consider it out-of-date. Use a stamp file instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant