Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbtools should declare setuptools as a requirement #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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