File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,8 @@ export CMAKE_PREFIX_PATH=$CONDA_ROOT_PREFIX
183
183
echo " Python Version:"
184
184
python --version
185
185
186
- # Uninstall onnx and onnx-caffe2; if stale versions are left over,
187
- # we may spuriously run test/test_onnx.py when we don't want to
188
- pip uninstall -y onnx || true
189
- pip uninstall -y onnx-caffe2 || true
186
+ echo " Removing old builds of torch"
187
+ pip uninstall -y torch || true
190
188
191
189
echo " Installing $PROJECT at branch $GIT_BRANCH and commit $GIT_COMMIT "
192
190
rm -rf $PROJECT
@@ -205,6 +203,12 @@ pip install -r requirements.txt || true
205
203
time python setup.py install
206
204
207
205
if [ ! -z " $jenkins_nightly " ]; then
206
+ # Uninstall any leftover copies of onnx and onnx-caffe2
207
+ echo " Removing any old builds"
208
+ pip uninstall -y onnx || true
209
+ pip uninstall -y onnx-caffe2 || true
210
+ pip uninstall -y onnx-pytorch || true
211
+
208
212
echo " Installing nightly dependencies"
209
213
conda install -y -c ezyang/label/gcc5 -c conda-forge protobuf scipy caffe2
210
214
git clone https://github.com/onnx/onnx-caffe2.git --recurse-submodules --quiet
You can’t perform that action at this time.
0 commit comments