build_wheel.sh 580 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"
Edward Z. Yang's avatar
Edward Z. Yang committed
8
export NO_CUDA_PACKAGE=1
9
setup_env 0.10.0
Edward Z. Yang's avatar
Edward Z. Yang committed
10
setup_wheel_python
moto's avatar
moto committed
11
pip_install numpy future cmake ninja
12
13
setup_pip_pytorch_version
python setup.py clean
peterjc123's avatar
peterjc123 committed
14
15
if [[ "$OSTYPE" == "msys" ]]; then
    python_tag="$(echo "cp$PYTHON_VERSION" | tr -d '.')"
16
    "$script_dir/vc_env_helper.bat" python setup.py bdist_wheel --plat-name win_amd64 --python-tag $python_tag
peterjc123's avatar
peterjc123 committed
17
else
18
    BUILD_TRANSDUCER=1 BUILD_SOX=1 python setup.py bdist_wheel
peterjc123's avatar
peterjc123 committed
19
fi