build: migrate pkg_resources to importlib (#1765 and #1794)
Fixes #1765 and #1794
Let me know if there's anything you'd like me to tweak / clarify!
polite ping @jrapin :)
@jrapin, @gwenzek would you kindly look into merging this? I think uv pip install submitit on Python 3.10.15 doesn't install setuptools and so submitit doesn't work out-of-the-box.
@jrapin, submitit is at-risk of going stale if simple issues like this are allowed to accumulate. Please could you take a look at this or loop in someone else from FAIR who has permission to approve/merge. Thank you.
This might break the CI since it did not run, I'm merging anyway if it solves the issue and try to get some time to check other PRs and push a new version. Sorry I don't have much bandwidth to check PRs here anymore, and other past maintainers have left FAIR, I'd be happy if I can rely on some trusted external maintainers but not sure Meta will grant push access easily :/ if some of you want to be part of it please open an issue to discuss how to do this, I'll prioritize checking this and figure out internally what can be done