-
Notifications
You must be signed in to change notification settings - Fork 15
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
Using conda update in case conda create fails #948
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elegant solution
@@ -320,7 +320,7 @@ def installEnvironCmd(name: str, requirementsFn: str, gpu=False): | |||
|
|||
target = name + '.yml' | |||
commands = [] | |||
commands.append('conda env create --yes -f %s' % requirementsFn) | |||
commands.append('conda env create -f %s || conda env update -f %s' % (requirementsFn, requirementsFn)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--yes was removed, add
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required with this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--yes
is not compatible across versions, thats the purpose of this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I understood you provide two options the first (newers, the second the olders)
Quality Gate passedIssues Measures |
Using conda update when conda create fails. In this manner, we are able to handle issue #925 without parsing the conda version.