From f00715724fa39b0cfa49a48f18f0beb79ed5f821 Mon Sep 17 00:00:00 2001 From: Seth Cope Date: Wed, 10 Jun 2026 21:38:28 -0500 Subject: [PATCH] Remove pkg_resources usage from setup.py (builds fail with setuptools>=82) setuptools 82.0.0 (2026-02-08) removed pkg_resources, so building this project's sdist in a default isolated build environment fails with ModuleNotFoundError: No module named 'pkg_resources'. Drop the parse_version-based setuptools>=36.2 assert; any setuptools new enough to lack pkg_resources satisfies it vacuously. Verified: the patched sdist builds a wheel with setuptools 82 in a clean python:3.12 container; the unpatched one does not. Co-Authored-By: Claude Fable 5 --- setup.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/setup.py b/setup.py index de97dee..118ebbd 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ -from pkg_resources import parse_version from configparser import ConfigParser import setuptools -assert parse_version(setuptools.__version__)>=parse_version('36.2') # note: all settings are in settings.ini; edit there, not here config = ConfigParser(delimiters=['='])