Closed njzjz closed 12 months ago
Probably better to replace it with importlib
anyway.
p.s.: PRs welcome :-)
'importlib' is not my forte, so i'm not going to venture into this, unless with a help from ChatGPT... For now can we get started with declaring the dependency on setuptools
? That's easy enough to add.
I've had issues reproducing the bug because setuptools are installed (somehow) when creating a developer env using the test_env.yaml
Band-aid is good enough — if you have a fix, please do a PR!
In MDAnalysisData we recently did the replacement https://github.com/MDAnalysis/MDAnalysisData/pull/76
path = importlib.resources.files('MDAnalysisData') / description_dir / filename
Okay, here is my proposed band-aid https://github.com/Becksteinlab/GromacsWrapper/pull/271/
pkg_resources
is a part ofsetuptools
, and https://github.com/python/cpython/issues/95299 removessetuptools
from Python environments. It needs to be manually added to the requirements.