Skip to content

Conversation

@Avasam
Copy link

@Avasam Avasam commented Feb 3, 2025

Addresses #12 in as backwards compatible as you can get, without forcing a dependency on the importlib_metadata backport.
Alternative to #24

@thebaptiste
Copy link

setuptools will remove pkg_resources with setuptools >= 81 at the end of 2025.
So it would be great to take this PR or #24

bwoodsend added a commit to bwoodsend/pyinstaller that referenced this pull request Sep 20, 2025
pkg_resources is scheduled to be removed in 2025-11-30 but altgraph
still uses it to query its own version. There is an open pull request to
altgraph to fix it (ronaldoussoren/altgraph#25) but it's showing no
signs getting merged.

Monkeypatch a fake pkg_resources into sys.modules when importing
altgraph so that its version query doesn't take out PyInstaller come
2025-11-30.
bwoodsend added a commit to bwoodsend/pyinstaller that referenced this pull request Sep 21, 2025
pkg_resources is scheduled to be removed in 2025-11-30 but altgraph
still uses it to query its own version. There is an open pull request to
altgraph to fix it (ronaldoussoren/altgraph#25) but it's showing no
signs getting merged.

Monkeypatch a fake pkg_resources into sys.modules when importing
altgraph so that its version query doesn't take out PyInstaller come
2025-11-30.
bwoodsend added a commit to pyinstaller/pyinstaller that referenced this pull request Sep 22, 2025
pkg_resources is scheduled to be removed in 2025-11-30 but altgraph
still uses it to query its own version. There is an open pull request to
altgraph to fix it (ronaldoussoren/altgraph#25) but it's showing no
signs getting merged.

Monkeypatch a fake pkg_resources into sys.modules when importing
altgraph so that its version query doesn't take out PyInstaller come
2025-11-30.
@KarelChanivecky
Copy link

Hi. Any reason why this hasn't merged yet after being approved in June?

@ptC7H12
Copy link

ptC7H12 commented Nov 19, 2025

Still not merged? What is the plan to deal with this further?

@thebaptiste
Copy link

thebaptiste commented Nov 19, 2025

I'm afraid this package is not actively maintained anymore...

@ronaldoussoren
Copy link
Owner

I've been busy at work, and this package generally only sees minor upgrades for new versions of Python. This means this package gets minimal attention.

I'll push out a release that usage of pkg_resources soon.

@ronaldoussoren
Copy link
Owner

I've implemented a different solution: just accept that I'll have to update both version and setup.cfg for new versions.

@Avasam Avasam deleted the avoid-pkg_resources-at-runtime branch November 22, 2025 02:44
@thebaptiste
Copy link

Thanks @ronaldoussoren

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.

6 participants