GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: Migrate from pkg_resources to importlib by EbonJaeger · Pull Request #290 · python-xlib/python-xlib

Conversation

@EbonJaeger

@EbonJaeger EbonJaeger commented Jun 8, 2026

Copy link
Copy Markdown

Setuptools 82 removed the pkg_resources module. The replacement is mostly importlib, with some other modules. This fixes the use of the removed module.

Signed-off-by: Evan Maddock [email protected]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@EbonJaeger EbonJaeger mentioned this pull request Jun 8, 2026
python-xlib: Fix build with setuptools 82 getsolus/packages#9183
Merged
2 of 3 tasks
@EbonJaeger
build: Migrate from pkg_resources to importlib
d56cda1
Setuptools 82 removed the `pkg_resources` module.
The replacement is `importlib`. This fixes the use
of the removed module.

Signed-off-by: Evan Maddock <[email protected]>
@EbonJaeger
EbonJaeger force-pushed the setuptools-82-fix branch from 67adbb7 to d56cda1 Compare June 8, 2026 23:40
HarveyDevel added a commit to getsolus/packages that referenced this pull request Jun 8, 2026
@HarveyDevel
python-xlib: Fix build with setuptools 82 (#9183)
961b923
**Summary**

Fix build with setuptools 82.

See python-xlib/python-xlib#290

**Test Plan**

See that the build was successful.

**Checklist**

- [x] Package was built and tested against unstable
- [ ] This change could gainfully be listed in the weekly sync notes
once merged <!-- Write an appropriate message in the Summary section,
then add the "Topic: Sync Notes" label -->
- [x] I agree to license this contribution and all my previous
contributions under the licensing terms in
[LICENSE.md](../blob/main/LICENSE.md) and have the power and authority
to grant those licenses.
@ghost

ghost commented Jun 11, 2026

Copy link
Copy Markdown

Independent verification: with this PR checked out, python -m build (sdist → wheel) succeeds in a clean python:3.12 container with current setuptools. Without it, the published python-xlib 0.33 sdist fails: ModuleNotFoundError: No module named 'pkg_resources' (removed in setuptools 82, 2026-02). Reproduce: docker run --rm python:3.12 pip install --no-binary :all: python-xlib. Found while build-checking the top-5000 PyPI packages — +1 for merge and release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Avasam Avasam mentioned this pull request Oct 30, 2026
Move away from obsolete pkg_resources, nose and setup.cfg #299
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@EbonJaeger
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.