← Back to issue list

Replace `pkg_resources.parse_version`

View original Github issue

Metadata

Project
snapcraft
Number
#4407
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged PR #4490 (commit 73afa9dc6), replacing pkg_resources with packaging/importlib.metadata and removing the setuptools<66 pin.

Resolution: closed resolved

Reason: PR #4490 was merged and resolved the issue by replacing pkg_resources.parse_version in the linker and glibc checks. Commit 73afa9dc6 also removed the setuptools<66 restriction.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done The `is_linker_compatible()` and `get_required_glibc()` calls need to be updated to not use this package. ### Why it needs to get done setuptools>=66 deprecated pkg_resources

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #4490 (commit 73afa9dc6), replacing pkg_resources with packaging/importlib.metadata and removing the setuptools<66 pin.
stealth/space-bunny-alpha — closed resolved Resolved by merged PR #4490 (commit 73afa9dc6), replacing pkg_resources with packaging and removing the setuptools<66 pin.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #4490, commit 73afa9dc6, which replaced pkg_resources with packaging and importlib.metadata and removed the setuptools<66 pin.
qwen/qwen3.6-35b-a3b — — Abandoned. Closed without resolution or comments. The deprecated pkg_resources.parse_version usage in is_linker_compatible() and get_required_glibc() remains unaddressed following the setuptools>=66 deprecation.
qwen/qwen3.6-35b-a3b — — The request to replace the deprecated pkg_resources.parse_version function was closed without comments or a linked pull request, indicating the task was likely abandoned or handled separately.
qwen/qwen3.6-35b-a3b — — Closed without resolution or linked PR. The setuptools>=66 deprecation of pkg_resources.parse_version requires updating is_linker_compatible() and get_required_glibc(), but the issue appears abandoned or was resolved separately.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned after setuptools>=66 deprecated pkg_resources. The is_linker_compatible() and get_required_glibc() functions require replacement, but no fix or discussion was recorded.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#4490 (confidence 100%)

    Merged PR that replaced pkg_resources and was identified as the direct resolution.

Related issues

Issue Project State Summary Similarity
#4490 refactor: replace `pkg_resources` with `packaging` snapcraft merged Merged PR #4490 replaced pkg_resources with packaging and importlib.metadata, removing the setuptools<66 pin; commit 73afa9dc6 resolves #4407.
85%
#1335 fix: replace deprecated pkg_resources with importlib charmcraft merged Merged PR #1335 via commit 37197f53, replacing deprecated pkg_resources with importlib in two files.
76%
#339 meta: remove deprecated pkg_resources usages craft-providers merged Merged PR #339 removed deprecated pkg_resources usages, resolving #317; merge commit df4a147.
72%