Skip to content

Commit

Permalink
Fix pip install torch cpu for travis (OpenNMT#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoishernandez authored Sep 23, 2019
1 parent cd97a85 commit 7675770
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ addons:
- sox
before_install:
# Install CPU version of PyTorch.
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install torch==1.2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install torch==1.2.0 -f https://download.pytorch.org/whl/cpu/torch_stable.html; fi
- pip install -r requirements.txt
- pip install -r requirements.opt.txt
- python setup.py install
Expand All @@ -24,7 +24,8 @@ env:

jobs:
include:
- env: LINT_CHECK
- name: "Flake8 Lint Check"
env: LINT_CHECK
install: pip install flake8 pep8-naming==0.7.0
script: flake8
- name: "Build Docs"
Expand Down

0 comments on commit 7675770

Please sign in to comment.