Closed nitzmahone closed 2 months ago
problem for me on arch linux
workaround if installed through pipx is pipx inject ansible-builder setuptools
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 https://github.com/ansible/ansible-builder/pull/659 was merged 3 months ago but no release was made since, so users will still face it.
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).