diff --git a/.jenkins/build.sh b/.jenkins/build.sh index dc8431c9dda..eaed1d00057 100755 --- a/.jenkins/build.sh +++ b/.jenkins/build.sh @@ -14,7 +14,6 @@ sudo apt-get install -y --no-install-recommends unzip p7zip-full sox libsox-dev export PATH=/opt/conda/bin:$PATH rm -rf src pip install -r $DIR/../requirements.txt -pip uninstall -y torchvision || true export PATH=/opt/conda/bin:$PATH conda install -y sphinx==1.8.2 pandas @@ -25,12 +24,6 @@ pip install -e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch # this is a workaround to the issue. pip install sphinx-gallery tqdm matplotlib ipython pillow==4.1.1 -# Install torchvision from source -git clone https://github.com/pytorch/vision --quiet -pushd vision -pip install . --no-deps # We don't want it to install the stock PyTorch version from pip -popd - # Install torchaudio from source git clone https://github.com/pytorch/audio --quiet pushd audio @@ -39,17 +32,6 @@ popd aws configure set default.s3.multipart_threshold 5120MB -if [[ $(pip show torch) ]]; then - # Clean up previous PyTorch installations - pip uninstall -y torch || true - pip uninstall -y torch || true -fi - -# Install a nightly build of pytorch - -# GPU, requires CUDA version 9.0 -pip install cython torch_nightly -f https://download.pytorch.org/whl/nightly/cu90/torch_nightly.html - # Decide whether to parallelize tutorial builds, based on $JOB_BASE_NAME export NUM_WORKERS=20 if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then diff --git a/requirements.txt b/requirements.txt index ea0c6fe184e..7d74d4d845e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,7 @@ sphinx-gallery tqdm numpy matplotlib +torch torchvision PyHamcrest bs4