codeapp icon indicating copy to clipboard operation
codeapp copied to clipboard

fix: remove pkg_resources fallback for setuptools 82+ compatibility

Open junagent opened this issue 8 months ago • 1 comments

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 avatar Mar 19 '26 17:03 junagent

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 avatar Mar 19 '26 17:03 junagent