blob: 7a61210b225ab890c2f686c111d9f71701bcd44a [file] [log] [blame]
#!/bin/bash
set -ex
# realpath might not be available on MacOS
script_path=$(python -c "import os; import sys; print(os.path.realpath(sys.argv[1]))" "${BASH_SOURCE[0]}")
top_dir=$(dirname $(dirname $(dirname "$script_path")))
tp2_dir="$top_dir/third_party"
pip install ninja
# Install caffe2
pip install -r "$top_dir/caffe2/requirements.txt"
python setup_caffe2.py develop
# Install onnx
pip install -e "$tp2_dir/onnx"
# Install pytorch
pip install -r "$top_dir/requirements.txt"
python setup.py build develop