Skip to content

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

Open
junagent wants to merge 3 commits intothebaselab:mainfrom
junagent:fix/remove-pkg-resources-fallback
Open

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

Conversation

@junagent
Copy link

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
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.

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