MilesCranmer commited on
Commit
73fb236
1 Parent(s): c765a2b

[travis] Use --user only for linux

Browse files
Files changed (1) hide show
  1. .travis.yml +4 -2
.travis.yml CHANGED
@@ -8,15 +8,17 @@ jobs:
8
  os: linux
9
  dist: bionic
10
  before_install: sudo apt-get -y install python3-pip python3-setuptools
 
11
  - name: "macOS"
12
  os: osx
13
  before_install: python3 --version; pip3 --version; sw_vers
 
14
  - name: "Windows"
15
  os: windows
16
  before_install:
17
  - choco install python --version 3.8.0
18
  - python -m pip install --upgrade pip
19
- env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
20
  allow_failures:
21
  - os: linux
22
  - os: windows
@@ -28,6 +30,6 @@ before_script:
28
 
29
  script:
30
  - pip3 install numpy pandas
31
- - python3 setup.py install --user
32
  - PATH=$HOME/.local/bin:$PATH python3 test/test.py
33
 
 
8
  os: linux
9
  dist: bionic
10
  before_install: sudo apt-get -y install python3-pip python3-setuptools
11
+ env: SETUPPREFIX="--user"
12
  - name: "macOS"
13
  os: osx
14
  before_install: python3 --version; pip3 --version; sw_vers
15
+ env: SETUPPREFIX=""
16
  - name: "Windows"
17
  os: windows
18
  before_install:
19
  - choco install python --version 3.8.0
20
  - python -m pip install --upgrade pip
21
+ env: PATH=/c/Python38:/c/Python38/Scripts:$PATH SETUPPREFIX=""
22
  allow_failures:
23
  - os: linux
24
  - os: windows
 
30
 
31
  script:
32
  - pip3 install numpy pandas
33
+ - python3 setup.py install $SETUPPREFIX
34
  - PATH=$HOME/.local/bin:$PATH python3 test/test.py
35