build_wheel.sh 412 Bytes
Newer Older
1
2
3
4
5
6
#!/bin/bash
set -ex

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$script_dir/pkg_helpers.bash"

7
export BUILD_TYPE=wheel
8
setup_env 0.6.0
Edward Z. Yang's avatar
Edward Z. Yang committed
9
setup_wheel_python
10
pip_install numpy pyyaml future ninja
Francisco Massa's avatar
Francisco Massa committed
11
12
# TODO remove after https://github.com/pytorch/pytorch/pull/27282 gets merged
pip_install six
13
14
15
setup_pip_pytorch_version
python setup.py clean
IS_WHEEL=1 python setup.py bdist_wheel