Skip to content

Conversation

@jmcrawford45
Copy link

rbtools uses pkg_resources which is provided by setuptools. Since this dependency isn't declared, my builds fail due to "ModuleNotFoundError: No module named 'pkg_resources'"

@chipx86
Copy link
Member

chipx86 commented Jan 12, 2022

Thanks for the change. I'd be interested in knowing at which point it fails and what your environment looks like, since setuptools is considered a per-requisite before interacting with setup.py.

As for code contributions, all code review is done on https://reviews.reviewboard.org, rather than through pull requests.

@jmcrawford45
Copy link
Author

jmcrawford45 commented Jan 12, 2022 via email

@nekopsykose
Copy link

setuptools is considered a per-requisite before interacting with setup.py.

that is 'build time'; it uses pkg_resources at runtime, after installing, so it's an install dependency and has to be specified as such.

also note that this is explicitly deprecated since setuptools 67.5.0 https://github.com/pypa/setuptools/blob/be6c0218bcba78dbd4ea0b5a8bb9acd5d5306240/CHANGES.rst#v6750

importlib.resources/metadata are the intended stdlib replacement (and have backport packages for pre-3.7/3.8 respectively), but i'm not sure what the replacement for iter_entry_points is.

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.

4 participants