Install setuptools before editable install in Makefile

Cached CI venvs skip dependency resolution on editable installs.
Explicitly install setuptools first in both dev and prod targets.
This commit is contained in:
russell@unturf.com 2026-02-08 12:11:58 -05:00
parent db2d23aabd
commit 2bf586595f

View file

@ -123,6 +123,8 @@ install: install-core install-dev
# Install from source (editable mode) for development and testing. # Install from source (editable mode) for development and testing.
install-source-dev-and-test: venv install-source-dev-and-test: venv
@echo "Ensuring setuptools is installed (required by Pyramid on Python 3.12+)..."
$(PIP) install setuptools
@echo "Installing make_post_sell from source (editable mode) for development..." @echo "Installing make_post_sell from source (editable mode) for development..."
$(PIP) install --editable . $(PIP) install --editable .
$(PIP) install --upgrade -r requirements-dev.txt $(PIP) install --upgrade -r requirements-dev.txt
@ -130,6 +132,8 @@ install-source-dev-and-test: venv
# Install from source for production (non‑editable). # Install from source for production (non‑editable).
install-source-prod: venv install-source-prod: venv
@echo "Ensuring setuptools is installed (required by Pyramid on Python 3.12+)..."
$(PIP) install setuptools
@echo "Deleting tests from source code for production..." @echo "Deleting tests from source code for production..."
rm -rf make_post_sell/tests rm -rf make_post_sell/tests
@echo "Installing make_post_sell from source for production (non‑editable)..." @echo "Installing make_post_sell from source for production (non‑editable)..."