install_wheels.sh 614 Bytes
Newer Older
moto's avatar
moto committed
1
2
#!/usr/bin/env bash

3
set -ex
moto's avatar
moto committed
4

5
6
7
8
9
10
11
12
13
14
15
if [[ -z "$PYTORCH_VERSION" ]]; then
    # Nightly build
    pip install --progress-bar off --pre torch -f "https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"
else
    # Release branch
    pip install --progress-bar off "torch==${PYTORCH_VERSION}+cpu" \
        -f https://download.pytorch.org/whl/torch_stable.html \
        -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/torch_${UPLOAD_CHANNEL}.html"
fi
pip install --progress-bar off --no-deps ~/workspace/torchaudio*
pip install --progress-bar off -r docs/requirements.txt -r docs/requirements-tutorials.txt