From 2ff431b7a08fab7938a73fb6f10ed76f151035aa Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 5 Sep 2019 15:56:12 +0200 Subject: [PATCH 1/2] build: use python3 to build and test on Travis Request Python 3 with pyenv, ensure that python3 is used by Makefile to run Python scripts, and turn on experimental support for Python 3 in node-gyp. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 93456573438b1c..5758ffe695a85c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,11 @@ language: cpp # To experiment with Python 3, comment out Python 2.7 and uncomment one of the Python 3 versions. env: global: - - PYTHON_VERSION="2.7.15" + # - PYTHON_VERSION="2.7.15" # - PYTHON_VERSION="3.6.7" - # - PYTHON_VERSION="3.7.1" + - PYTHON_VERSION="3.7.1" + - PYTHON=python3 + - EXPERIMENTAL_NODE_GYP_PYTHON3="yes" jobs: include: - stage: "Compile" From 77fb26603582e9a015a5ee1fbfce67a39422fff1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 17 Oct 2019 09:54:05 +0300 Subject: [PATCH 2/2] fixup: remove EXPERIMENTAL_NODE_GYP_PYTHON3="yes" --- .travis.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5758ffe695a85c..8aa321ec1626d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,15 +6,10 @@ x-ccache-setup-steps: &ccache-setup-steps os: linux language: cpp -# Currently this file can only support one PYTHON_VERSION. -# To experiment with Python 3, comment out Python 2.7 and uncomment one of the Python 3 versions. env: global: - # - PYTHON_VERSION="2.7.15" - # - PYTHON_VERSION="3.6.7" - PYTHON_VERSION="3.7.1" - PYTHON=python3 - - EXPERIMENTAL_NODE_GYP_PYTHON3="yes" jobs: include: - stage: "Compile"