build_wheel.sh 457 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
Eli Uriegas's avatar
Eli Uriegas committed
8
setup_env 0.8.0
Edward Z. Yang's avatar
Edward Z. Yang committed
9
setup_wheel_python
peterjc123's avatar
peterjc123 committed
10
pip_install numpy pyyaml future ninja
11
12
setup_pip_pytorch_version
python setup.py clean
13
14
15
16
17
if [[ "$OSTYPE" == "msys" ]]; then
    IS_WHEEL=1 "$script_dir/windows/internal/vc_env_helper.bat" python setup.py bdist_wheel
else
    IS_WHEEL=1 python setup.py bdist_wheel
fi