mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/16487 Differential Revision: D13858628 Pulled By: bddppq fbshipit-source-id: e1ff3fc5f9be5d3dbbf96ee73c3a8c901b440b82
19 lines
472 B
Bash
Executable File
19 lines
472 B
Bash
Executable File
#!/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 onnx
|
|
pip install -e "$tp2_dir/onnx"
|
|
|
|
# Install caffe2 and pytorch
|
|
pip install -r "$top_dir/caffe2/requirements.txt"
|
|
pip install -r "$top_dir/requirements.txt"
|
|
python setup.py develop
|