ci/travis-install.sh: Install python3-six package
authorBart Van Assche <bvanassche@acm.org>
Sun, 7 Jun 2020 19:11:01 +0000 (12:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Jun 2020 23:30:37 +0000 (17:30 -0600)
Additionally, report the Python3 path and version.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
ci/travis-install.sh

index 096347ec662acee0d8ade970e0804b09a55424d5..8a4f40e57a3a64393a11c520e85243a92ff46346 100755 (executable)
@@ -2,6 +2,7 @@
 
 case "$TRAVIS_OS_NAME" in
     "linux")
+       # Architecture-dependent packages.
        pkgs=(
            libaio-dev
            libcunit1
@@ -16,16 +17,27 @@ case "$TRAVIS_OS_NAME" in
        )
        if [[ "$BUILD_ARCH" == "x86" ]]; then
            pkgs=("${pkgs[@]/%/:i386}")
-           pkgs+=(gcc-multilib python3-scipy)
+           pkgs+=(gcc-multilib)
        else
-           pkgs+=(glusterfs-common python3-scipy)
+           pkgs+=(glusterfs-common)
        fi
+       # Architecture-independent packages and packages for which we don't
+       # care about the architecture.
+       pkgs+=(
+           python3
+           python3-scipy
+           python3-six
+       )
        sudo apt-get -qq update
        sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"
        ;;
     "osx")
-       brew update
+       brew update >/dev/null 2>&1
        brew install cunit
        pip3 install scipy
        ;;
 esac
+
+echo "Python version: $(/usr/bin/python -V 2>&1)"
+echo "Python3 path: $(which python3 2>&1)"
+echo "Python3 version: $(python3 -V 2>&1)"