Skip to content

Commit

Permalink
HACK: pip install onnx from version instead of source
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlassen committed Sep 15, 2023
1 parent 381e28a commit 6d66a38
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .azure-pipelines/Windows-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ jobs:

- script: |
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cd onnx-mlir\third_party\onnx
python3 -m pip install .
# pip installing onnx from thirdparty source fails on vmImage: 'windows-2022'
# therefore we install from specified onnx version instead
# TODO: fetch the version from thirdparty\onnx\VERSION_NUMBER
#cd onnx-mlir\third_party\onnx
#python3 -m pip install .
python3 -m pip install onnx==1.14.0
env:
CMAKE_ARGS: -DCMAKE_PREFIX_PATH="$(Agent.BuildDirectory)\protobuf_install" -DONNX_USE_PROTOBUF_SHARED_LIBS=OFF -DProtobuf_USE_STATIC_LIBS=ON -DONNX_USE_MSVC_STATIC_RUNTIME=OFF
displayName: Install onnx
Expand Down

0 comments on commit 6d66a38

Please sign in to comment.