-
Notifications
You must be signed in to change notification settings - Fork 98
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
requirements-parser breaks on 3.12+ default venvs #644
Comments
5 tasks
problem for me on arch linux |
workaround if installed through pipx is |
IMHO, the "we do not want" as something for the future, for the moment I hotfix would be to add setuptools as a dependency at least for py312. The fix #659 was merged 3 months ago but no release was made since, so users will still face it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ansible-builder fails to run in "stock" Python 3.12+ venvs/environments. The
requirements-parser
Python dep used byintrospect.py
has an undeclared dependency onsetuptools
, since it relies onpkg_resources
being present. This has arguably been broken for a long time, but is exacerbated by Python 3.12+ venvs explicitly excludingsetuptools
by default.We don't really want a runtime dep on setuptools anyway, so this is another nail in the coffin of
requirements-parser
. We might be able to get what we need frompackaging
instead, but the way we inject and runintrospect
inside the container env makes me consider vendoring the needed bits instead (possiblyrequirements-parser
itself).The text was updated successfully, but these errors were encountered: