Skip to content

Commit

Permalink
automatically get latest pytorch version in docs (pyro-ppl#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpchen authored and fritzo committed Mar 27, 2018
1 parent 2a19ace commit e9b8e4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,7 @@ def setup(app):

# @jpchen's hack to get rtd builder to install latest pytorch
if 'READTHEDOCS' in os.environ:
os.system('sh scripts/install_pytorch.sh')
os.system('curl -o install.sh https://raw.githubusercontent.com/uber/pyro/dev/scripts/install_pytorch.sh')
os.system('curl https://raw.githubusercontent.com/uber/pyro/dev/README.md > README.md')
os.system('bash install.sh')
os.system('rm -f install.sh')
3 changes: 2 additions & 1 deletion scripts/install_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ else
fi

# Download wheel and install
wget -P tmp/ "${WHL_PREFIX}/${!WHL_LOOKUP}.whl"
curl -o tmp/"${!WHL_LOOKUP}.whl" "${WHL_PREFIX}/${!WHL_LOOKUP}.whl"

pip install tmp/*

0 comments on commit e9b8e4a

Please sign in to comment.