Skip to content

Commit f7399e2

Browse files
committed
virtualenv
1 parent fb33705 commit f7399e2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ jobs:
1818
addons:
1919
homebrew:
2020
packages: python3
21+
cache:
22+
directories:
23+
- $HOME/Library/Caches/Homebrew
24+
- /usr/local/Homebrew
25+
before_install:
26+
- python3 -m pip install --upgrade virtualenv
27+
- virtualenv -p python3 --system-site-packages "$HOME/venv"
28+
- source "$HOME/venv/bin/activate"
2129
env:
2230
- MACOSX_DEPLOYMENT_TARGET=10.9
2331
- CC=clang
2432
- CXX=clang++
25-
before_install:
26-
- alias pip=pip3
27-
- alias python=python3
2833
install:
2934
- pip install numpy
3035
- pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

0 commit comments

Comments
 (0)