Skip to content

Conversation

@houseroad
Copy link
Member

ONNX uses virtualenv, and PyTorch doesn't. So --user flag is causing problems in ONNX ci...

Fixing it by moving it to pytorch only scripts. And will install ninja in onnx ci separately.

@pytorchbot pytorchbot added module: build Build system issues module: ci Related to continuous integration module: onnx Related to torch.onnx labels Jul 16, 2019
@houseroad houseroad requested a review from bddppq July 16, 2019 22:24
pip install ninja --user
# ninja is installed in /var/lib/jenkins/.local/bin

# JIT C++ extensions require ninja, and put it into PATH.
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this line as well?

#####################
if [[ "$BUILD_ENVIRONMENT" == *onnx* ]]; then
pip install -q --user git+https://github.com/pytorch/vision.git
pip install --user ninja
Copy link
Contributor

Choose a reason for hiding this comment

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

add -q

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@houseroad houseroad deleted the fix_onnx_ci branch July 17, 2019 17:23
@facebook-github-bot
Copy link
Contributor

@houseroad merged this pull request in b96610b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: build Build system issues module: ci Related to continuous integration module: onnx Related to torch.onnx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants