[Mesa-dev] [PATCH 1/2] travis: pull xenial for python3.5 (and friends) on meson

Juan A. Suarez Romero jasuarez at igalia.com
Mon Sep 10 12:18:09 UTC 2018


On Fri, 2018-09-07 at 14:58 +0100, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
> 
> The meson requirement was bumped recently to 0.45, which requires
> python 3.5
> 
> On travis that is only available on xenial. Additionally we need to pull
> setuptools package otherwise pip fails to install meson.
> 

Trusty on Travis provides python 3.5, though it is not the default python3
version.


In https://patchwork.freedesktop.org/series/49428/ I provide an alternative to
keep using Trusty, by installing python 3.5 and making it the default python3
version in Meson targets.


	J.A.

> Pulling setuptools via pip, attempts to recursively attepmting to
> install pip, which ends miserably. To top of up, the setuptools package
> is missing an optional dependency (recommends) of python3-wheel.
> 
> So add that one as well to the list.
> 
> Fixes: 3824c8e7cda ("meson: disable asserts by default on release
> builds")
> Cc: Eric Engestrom <eric.engestrom at intel.com>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  .travis.yml | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/.travis.yml b/.travis.yml
> index 079f145a7e4..88f849be136 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -40,6 +40,7 @@ matrix:
>          - VULKAN_DRIVERS="intel,amd"
>          - LLVM_VERSION=6.0
>          - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
> +      dist: xenial # required for python 3.5, which is needed by meson
>        addons:
>          apt:
>            sources:
> @@ -54,12 +55,16 @@ matrix:
>              - libexpat1-dev
>              - libelf-dev
>              - python3-pip
> +            # Meson
> +            - python3-setuptools
> +            - python3-wheel # required by setuptools, yet packaging does not pull it
>      - env:
>          - LABEL="meson loaders/classic DRI"
>          - BUILD=meson
>          - DRI_DRIVERS="i915,i965,r100,r200,swrast,nouveau"
>          - GALLIUM_DRIVERS=""
>          - VULKAN_DRIVERS=""
> +      dist: xenial # required for python 3.5, which is needed by meson
>        addons:
>          apt:
>            packages:
> @@ -70,6 +75,9 @@ matrix:
>              - libxdamage-dev
>              - libxfixes-dev
>              - python3-pip
> +            # Meson
> +            - python3-setuptools
> +            - python3-wheel # required by setuptools, yet packaging does not pull it
>      - env:
>          - LABEL="make loaders/classic DRI"
>          - BUILD=make



More information about the mesa-dev mailing list