Skip to content

Commit 75b59c8

Browse files
committed
Valid PATH manipulation on macOS
`pip install package-name --user` installs binaries to USER_SITE. USER_SITE is different on different systems: https://docs.python.org/3/library/site.html#site.USER_SITE Using `python -m site --user-base` makes travis-cargo valid command: https://docs.python.org/3/library/site.html#cmdoption-site--user-site
1 parent ad24861 commit 75b59c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rust:
66
before_script:
77
- |
88
pip install 'travis-cargo<0.2' --user &&
9-
export PATH=$HOME/.local/bin:$PATH
9+
export PATH=`python -m site --user-base`/bin:$PATH
1010
script:
1111
- |
1212
travis-cargo build &&

0 commit comments

Comments
 (0)