Skip to content

Commit

Permalink
Update ONNX script (#627) (onnx/onnx#3129)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Dec 2, 2021
1 parent a5204fc commit 8e185bc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tools/onnx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ install() {
[ -x "$(command -v cmake)" ] || brew install cmake > /dev/null
[ -x "$(command -v protoc)" ] || brew install protobuf > /dev/null
protobuf=protobuf
if [ "$(uname -sm)" = "Darwin arm64" ]; then
PYTHON_ARCHITECTURE=$(${python} -c "import platform; print(platform.uname().machine);")
export CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES=${PYTHON_ARCHITECTURE}"
if [ ${PYTHON_ARCHITECTURE} = "arm64" ]; then
pep517=--no-use-pep517
fi
fi
;;
msys*)
protoc_version=3.16.0
Expand All @@ -91,8 +84,7 @@ install() {
esac
venv
${python} -m pip install --quiet --upgrade ${protobuf}
${python} -m pip install --quiet --upgrade numpy
${python} -m pip install --quiet "./third_party/source/onnx" ${pep517}
${python} -m pip install --quiet "./third_party/source/onnx"
deactivate
}

Expand Down

0 comments on commit 8e185bc

Please sign in to comment.