fixing condas strange exit code and json stdout outputs#12
Open
shaoran wants to merge 2 commits intoUDST:masterfrom
Open
fixing condas strange exit code and json stdout outputs#12shaoran wants to merge 2 commits intoUDST:masterfrom
shaoran wants to merge 2 commits intoUDST:masterfrom
Conversation
Sometimes you want to conda install a bunch of packages at once
and for some of them you have a version restriction, like
- name: installing conda packages
conda:
name: "{{ item }}"
with_items:
- pandas
- pyqt=4.11.4
- chardet
The version evaluation is not done yet
The conda version I was using did not behave as it was exepcted by this module. conda list --json returns two different structures depending on whether the package was initially installed by "pip". I had the following problem: I wanted to make sure than some packages are installed: - name: Installing packages conda: name=pip The very first time that this was executed conda list --json returned a json structure that was not expected. If you manually installed pip with conda, then the have the regular structure. I ran constantly into these kind of issues. I've been deploying conda on several machines and not once they have failed.
Member
|
Hi, thanks for this PR, sorry for taking so long to review. It looks like this had some conflicts with #14, could you resolve those and make sure this still works as expected? |
Author
|
At the moment I'm a little bit busy, I'll do that at the weekend. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The conda version I was using did not behave as it was exepcted by this
module.
conda list --json returns two different structures depending on whether
the package was initially installed by "pip".
I had the following problem: I wanted to make sure than some packages
are installed:
conda: name=pip
The very first time that this was executed conda list --json returned a
json structure that was not expected. If you manually installed pip with
conda, then the have the regular structure.
I ran constantly into these kind of issues. I've been deploying conda on
several machines and not once they have failed.
Sometimes you want to conda install a bunch of packages at once
and for some of them you have a version restriction, like
conda:
name: "{{ item }}"
with_items: