travis: use python3.5 for meson
Newer Meson versions require python >=3.5. But in Trusty default python3
version is 3.4.x.
Install python3.5 and makes it the default version for Meson using
update-alternatives method.
CC: Jan Vesely <jano.vesely@gmail.com>
CC: Andres Gomez <agomez@igalia.com>
CC: Emil Velikov <emil.l.velikov@gmail.com>
CC: Jon Turney <jon.turney@dronecode.org.uk>
CC: Eric Engestrom <eric.engestrom@intel.com>
CC: Dylan Baker <dylan@pnwbakers.com>
Fixes: 3824c8e7cd
"meson: disable asserts by default on release builds"
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
This commit is contained in:

committed by
Eric Engestrom

parent
3d08631fe5
commit
d631916f29
@@ -53,6 +53,7 @@ matrix:
|
|||||||
- xz-utils
|
- xz-utils
|
||||||
- libexpat1-dev
|
- libexpat1-dev
|
||||||
- libelf-dev
|
- libelf-dev
|
||||||
|
- python3.5
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- env:
|
- env:
|
||||||
- LABEL="meson loaders/classic DRI"
|
- LABEL="meson loaders/classic DRI"
|
||||||
@@ -69,6 +70,7 @@ matrix:
|
|||||||
- libx11-xcb-dev
|
- libx11-xcb-dev
|
||||||
- libxdamage-dev
|
- libxdamage-dev
|
||||||
- libxfixes-dev
|
- libxfixes-dev
|
||||||
|
- python3.5
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- env:
|
- env:
|
||||||
- LABEL="make loaders/classic DRI"
|
- LABEL="make loaders/classic DRI"
|
||||||
@@ -490,8 +492,10 @@ before_install:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
# Install a more modern meson from pip, since the version in the
|
# Install a more modern meson from pip, since the version in the
|
||||||
# ubuntu repos is often quite old.
|
# ubuntu repos is often quite old. This requires python>=3.5, so
|
||||||
|
# let's make it default
|
||||||
- if test "x$BUILD" = xmeson; then
|
- if test "x$BUILD" = xmeson; then
|
||||||
|
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 10;
|
||||||
pip3 install --user meson;
|
pip3 install --user meson;
|
||||||
pip3 install --user mako;
|
pip3 install --user mako;
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user