From f55e301aac73cb6929b794dcb36888beb6c6c414 Mon Sep 17 00:00:00 2001 From: Seth Cope Date: Wed, 10 Jun 2026 21:38:25 -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 pkg_resources.require() version checks; the existing setuptools_scm import still fails loudly if it is missing. 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 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/setup.py b/setup.py index ab1583e..f533213 100644 --- a/setup.py +++ b/setup.py @@ -15,13 +15,6 @@ from setuptools import setup -# (1) check required versions (from https://medium.com/@daveshawley/safely-using-setup-cfg-for-metadata-1babbe54c108) -import pkg_resources - -pkg_resources.require("setuptools>=39.2") -pkg_resources.require("setuptools_scm") - - # (2) Generate download url using git version from setuptools_scm import get_version # noqa: E402