diff options
author | Eric Engestrom <[email protected]> | 2019-12-21 19:28:07 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-12-21 20:23:08 +0000 |
commit | bc943d00aa0b6c67e3031805955b4278041321c2 (patch) | |
tree | 928b40604cafccfab37237425c3d3b2c1a3be9f1 /.travis.yml | |
parent | 45e1443fd87b23edb00019a743a6bba38ae846b2 (diff) |
travis: autodetect python version instead of hard-coding it
Signed-off-by: Eric Engestrom <[email protected]>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 6528b104667..ab8e67e74bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,7 +26,8 @@ before_install: fi # Set PATH for homebrew pip3 installs - - PATH="$HOME/Library/Python/3.6/bin:${PATH}" + - PYTHON_VERSION=$(python3 -V | awk '{print $2}' | cut -d. -f1-2) + - PATH="$HOME/Library/Python/$PYTHON_VERSION/bin:${PATH}" # Set PKG_CONFIG_PATH for keg-only expat - PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}" # Set PATH for keg-only gettext |