Install setuptools in venv creation step for Python 3.12+

The requirements.py3.txt change alone wasn't enough — pip treats
setuptools specially during editable installs and may not install
it as a runtime dependency. Installing it immediately after venv
creation ensures pkg_resources is available for Pyramid and theme
loading.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
russell@unturf.com 2026-02-08 12:03:44 -05:00
parent 8d64fa11e4
commit ef4d6da410

View file

@ -23,6 +23,8 @@ all: install-from-pypi serve
$(VENV_DIR)/bin/activate:
@echo "Creating virtual environment in $(VENV_DIR)..."
python3 -m venv $(VENV_DIR)
@echo "Installing setuptools (required by Pyramid, not bundled in Python 3.12+ venvs)..."
$(PIP) install setuptools
venv: $(VENV_DIR)/bin/activate