codeapp
codeapp copied to clipboard
fix: remove pkg_resources fallback for setuptools 82+ compatibility
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
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.