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

Feature request: being able to add constraints for dependencies of ansible-core/ansible-runner/..., or to pin their dependencies #699

Open
felixfontein opened this issue Jul 27, 2024 · 3 comments
Labels
needs_triage New item that needs to be triaged

Comments

@felixfontein
Copy link
Contributor

Right now it's possible to specify a specific ansible-core or ansible-runner version, but it's not possible to specify any constraints on their dependencies (or if there is, I didn't find it).

This causes a big problem right now because python-daemon 3.0.2 (a dependency of ansible-runner) breaks setuptools (https://pagure.io/python-daemon/issue/94), which breaks every single EE build that installs a Python dependency that uses setup.py / setup.cfg - and there's no way to avoid it since it's apparently not possible to tell ansible-builder to pin python-daemon to != 3.0.2.

(Maybe you can prepend build steps to manually install another version before ansible-builder calls pip, but I consider that a hack, not a good solution.)

@felixfontein
Copy link
Contributor Author

(python-daemon 3.0.2 has been yanked, so that specific problem is solved, but having a way to pin or constrain dependencies is still a good thing to have :) )

@webknjaz
Copy link
Member

@felixfontein is it possible to stick -c broken-constraints.txt into your requirements file?

@felixfontein
Copy link
Contributor Author

@webknjaz there is no requirements file for ansible-runner and ansible-core, these are installed in a separate step by ansible-builder without any requirements file. See https://ansible.readthedocs.io/projects/builder/en/stable/definition/#dependencies: there you can only specify a single value package_pip for ansible_core and ansible_runner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_triage New item that needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants