Skip to content

fix: remove pkg_resources fallback for setuptools 82+ compatibility - #1316

Closed
junagent wants to merge 3 commits into
thebaselab:mainfrom
junagent:fix/remove-pkg-resources-fallback
Closed

fix: remove pkg_resources fallback for setuptools 82+ compatibility#1316
junagent wants to merge 3 commits into
thebaselab:mainfrom
junagent:fix/remove-pkg-resources-fallback

Conversation

@junagent

Copy link
Copy Markdown

Summary

Remove deprecated pkg_resources fallback from Cython entry-point scripts for setuptools 82+ compatibility.

Root Cause

The scripts use a three-level fallback for loading entry points. Since importlib.metadata is in Python stdlib (3.8+), the try/except block is dead code. On setuptools 82+, the pkg_resources import fails with ModuleNotFoundError.

Fix

Replace the try/except block with a direct import of importlib.metadata.distribution.

Files Changed

  • LanguageResources/Library/bin/cygdb
  • LanguageResources/Library/bin/cython
  • LanguageResources/Library/bin/cythonize

Fixes #ISSUE

@junagent

Copy link
Copy Markdown
Author

Bug label request for bounty tracking on Algora/IssueHunt. This PR removes deprecated pkg_resources fallback from Cython entry-point scripts for setuptools 82+ (PEP 740, Feb 2026) compatibility.

@junagent junagent closed this by deleting the head repository Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant