Skip to content

TST Only use activate for conda builds on windows#13517

Merged
adrinjalali merged 1 commit intoscikit-learn:masterfrom
thomasjpfan:windows_call
Mar 26, 2019
Merged

TST Only use activate for conda builds on windows#13517
adrinjalali merged 1 commit intoscikit-learn:masterfrom
thomasjpfan:windows_call

Conversation

@thomasjpfan
Copy link
Copy Markdown
Member

Reference Issues/PRs

Fixes #13512

What does this implement/fix? Explain your changes.

Only 64 bit Windows uses conda which has access to the activate command.

@jnothman
Copy link
Copy Markdown
Member

I think the other thing that was surprising in the issue was that the build did not fail as a result of this failing command. Can we change that?

@thomasjpfan
Copy link
Copy Markdown
Member Author

Batch scripting is an interesting beast. To get it to "early exit" from a command, we would need to append each command with || EXIT /B 1

In our case, it would be call activate testvenv || EXIT /B 1.

Copy link
Copy Markdown
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I give up then.

@adrinjalali adrinjalali merged commit 5ff64d3 into scikit-learn:master Mar 26, 2019
@adrinjalali
Copy link
Copy Markdown
Member

Thanks @thomasjpfan

xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

''activate' is not recognized as an internal or external command, operable program or batch file.' error in VSTS Continuous integration job

3 participants