Skip to content

Commit a4a2fbb

Browse files
brianjosoumith
authored andcommitted
Build Repair Work: build-fix branch (pytorch#564)
* Update requirements.txt Pinning sphinx gallery. Step one. Please don't merge. * Update build.sh removed audio, audio sample, added || true to line 39. * Update build.sh uninstall/install awscli * Update build.sh Trying to unpin Sphinx from ==1.8.2. * Update build.sh Pinning sphinx-gallery. * Update build.sh repining sphinx trying pip install * Update build.sh removed -y option * Update build.sh * Update build.sh
1 parent 2f8fe90 commit a4a2fbb

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.jenkins/build.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,34 @@ rm -rf src
1616
pip install -r $DIR/../requirements.txt
1717

1818
export PATH=/opt/conda/bin:$PATH
19-
conda install -y sphinx==1.8.2 pandas
19+
pip install sphinx==1.8.2 pandas
20+
21+
# install awscli
22+
# pip uninstall awscli
23+
# pip install awscli==1.16.35
24+
2025
# PyTorch Theme
2126
rm -rf src
2227
pip install -e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
2328
# pillow >= 4.2 will throw error when trying to write mode RGBA as JPEG,
2429
# this is a workaround to the issue.
25-
pip install sphinx-gallery tqdm matplotlib ipython pillow==4.1.1
30+
pip install sphinx-gallery==0.3.1 tqdm matplotlib ipython pillow==4.1.1
2631

2732
# Install torchaudio from source
28-
git clone https://github.com/pytorch/audio --quiet
29-
pushd audio
30-
python setup.py install
31-
popd
33+
# git clone https://github.com/pytorch/audio --quiet
34+
# pushd audio
35+
# python setup.py install
36+
# popd
3237

3338
aws configure set default.s3.multipart_threshold 5120MB
3439

3540
# Decide whether to parallelize tutorial builds, based on $JOB_BASE_NAME
3641
export NUM_WORKERS=20
3742
if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
3843
# Step 1: Remove runnable code from tutorials that are not supposed to be run
39-
python $DIR/remove_runnable_code.py beginner_source/aws_distributed_training_tutorial.py beginner_source/aws_distributed_training_tutorial.py
44+
python $DIR/remove_runnable_code.py beginner_source/aws_distributed_training_tutorial.py beginner_source/aws_distributed_training_tutorial.py || true
4045
# TODO: Fix bugs in these tutorials to make them runnable again
41-
python $DIR/remove_runnable_code.py beginner_source/audio_classifier_tutorial.py beginner_source/audio_classifier_tutorial.py
46+
python $DIR/remove_runnable_code.py beginner_source/audio_classifier_tutorial.py beginner_source/audio_classifier_tutorial.py || true
4247

4348
# Step 2: Keep certain tutorials based on file count, and remove runnable code in all other tutorials
4449
# IMPORTANT NOTE: We assume that each tutorial has a UNIQUE filename.
@@ -180,4 +185,4 @@ else
180185
fi
181186

182187
rm -rf vision
183-
rm -rf audio
188+
# rm -rf audio

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Refer to ./jenkins/build.sh for tutorial build instructions
22

33
sphinx
4-
sphinx-gallery
4+
sphinx-gallery==0.3.1
55
tqdm
66
numpy
77
matplotlib

0 commit comments

Comments
 (0)