Skip to content

Remove pkg_resources usage#333

Closed
casparvl wants to merge 6 commits intoEESSI:mainfrom
casparvl:remove_pkg_resources
Closed

Remove pkg_resources usage#333
casparvl wants to merge 6 commits intoEESSI:mainfrom
casparvl:remove_pkg_resources

Conversation

@casparvl
Copy link
Copy Markdown
Collaborator

@casparvl casparvl commented May 5, 2026

I'm hitting an issue on Pyhon 3.12.3 when running anything that pkg_resources isn't present. Of course, we knew this would be deprecated. While using it in our setup.py is also awkward and it should eventually be removed there as well, that's not as urgent as removing it from this __init__, as having it here basically means not being able to import anything from the eessi namespace on systems that don't have pkg_resources anymore. (for the setup.py: we can always build on a system with older python).

According to my AI friend, this call shouldn't even be needed if you have Python>=3.3, setuptools >= 28.8 and pip >= 9.0. I'm hoping that's true for everyone nowadays...

@casparvl
Copy link
Copy Markdown
Collaborator Author

casparvl commented May 5, 2026

Ok, I give up, I'll create a new PR and just try with a try statement or something. All of this will be so much simpler once we give up Python 3.6 support...

@casparvl casparvl closed this May 5, 2026
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.

1 participant