Pin setuptools<81 — version 82 removed pkg_resources

Pyramid 2.0.2 imports pkg_resources which was dropped from setuptools 81+.
Pin to <81 until Pyramid removes its pkg_resources dependency.
This commit is contained in:
russell@unturf.com 2026-02-08 12:18:29 -05:00
parent 2bf586595f
commit c60c6bd84b
3 changed files with 6 additions and 6 deletions

View file

@ -124,7 +124,7 @@ install: install-core install-dev
# Install from source (editable mode) for development and testing.
install-source-dev-and-test: venv
@echo "Ensuring setuptools is installed (required by Pyramid on Python 3.12+)..."
$(PIP) install setuptools
$(PIP) install 'setuptools<81'
@echo "Installing make_post_sell from source (editable mode) for development..."
$(PIP) install --editable .
$(PIP) install --upgrade -r requirements-dev.txt
@ -133,7 +133,7 @@ install-source-dev-and-test: venv
# Install from source for production (noneditable).
install-source-prod: venv
@echo "Ensuring setuptools is installed (required by Pyramid on Python 3.12+)..."
$(PIP) install setuptools
$(PIP) install 'setuptools<81'
@echo "Deleting tests from source code for production..."
rm -rf make_post_sell/tests
@echo "Installing make_post_sell from source for production (noneditable)..."