Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[WIP] Created new conda module for managing conda packages #40455
Created new conda module for managing conda packages.
Module allows you to install, update or remove multiple packages in one transaction.
Have you written this module from scratch or is this code from another project, which has already been tried and tested? You posted a comment on UDST/ansible-conda, indicating you were aware of that codebase but this code seems to be entirely different.
We use UDST/ansible-conda in our production setups but that was only possible after fixing it to work with a lot of oddities of the
As it stands, I do not support this PR. However, I do think it would be good for there to be core support for Conda so I endorse the effort.
Firstly happy to add more tests.
This module has been developed internally at my work and now wishing to contribute upstream. We have tried and tested this module in our environments but of course welcome others testing too. I was only aware of the UDST code base after this PR was raised, and noticed that there is an open tick on UDST to contribute upstream, but the PR to was ultimately closed as permission to re-licence/redistribute had not been obtained/verified. And nearly wished to convey to any interested parties watching the issue this attempt was in the works.
Re: testing parity between UDST and this - I note that there are API differences. In particular this module allows installing, updating, removing multiple packages in one transaction. This was particularly important for us as installing packages over a loop, caused problems with dependency resolution where versions of packages were changed multiple times and not to the one intended (and much slower as multiple versions of the same package were downloaded and re-installed). As we pass in a list of packages, we hence don't have a
In regards to your concerns around the oddities of the
Read through the whole PR top to bottom on my computer. On my phone now though, so we’ll see how far this goes. Probably just a first round of comments. These specifically pertaining to the API the module presents.
Ok those are initial drive-by thoughts. I’ll have more I’m sure when I can revisit this back on a proper computer screen.
changed the title from
Created new conda module for managing conda packages
[WIP] Created new conda module for managing conda packages
Jun 4, 2018
Wonder if I'm missing something here; how do you install a package into a specific environment with this module? (Also ensuring that environment gets created if it didn't exist in the first place)
E.g., production box has two different conda environments that you want to maintain alongside.