From 61ddc4b5f6bfaa4061855a4b2d7e4be014274498 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Mon, 4 Nov 2019 00:27:02 -0800 Subject: [PATCH 1/2] Update meson/python ``` DEPRECATION: Project targetting '>= 0.41.1' but tried to use feature deprecated since '0.48.0': python3 module Build targets in project: 3 WARNING: Deprecated features used: * 0.48.0: {'python3 module'} ``` --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 65dcffa8c..b2560af29 100644 --- a/meson.build +++ b/meson.build @@ -71,7 +71,8 @@ jsoncpp_dep = declare_dependency( ) # tests -python = import('python3').find_python() +#python = import('python3').find_python() +python = find_program('python3', 'python') jsoncpp_test = executable( 'jsoncpp_test', From 2f91b96cb9b5fff9218d78e78787f2e499d3f897 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Mon, 4 Nov 2019 01:13:59 -0800 Subject: [PATCH 2/2] Avoid deprecated Meson feature * https://mesonbuild.com/Python-3-module.html > This module is deprecated and replaced by the python module. --- .travis_scripts/meson_builder.sh | 2 +- meson.build | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis_scripts/meson_builder.sh b/.travis_scripts/meson_builder.sh index 0820c890c..1fdd8f65d 100755 --- a/.travis_scripts/meson_builder.sh +++ b/.travis_scripts/meson_builder.sh @@ -65,7 +65,7 @@ _COMPILER_NAME=`basename ${CXX}` _BUILD_DIR_NAME="build-${BUILD_TYPE}_${LIB_TYPE}_${_COMPILER_NAME}" ./.travis_scripts/run-clang-format.sh -meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . "${_BUILD_DIR_NAME}" +meson --fatal-meson-warnings --werror --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . "${_BUILD_DIR_NAME}" ninja -v -j 2 -C "${_BUILD_DIR_NAME}" cd "${_BUILD_DIR_NAME}" diff --git a/meson.build b/meson.build index b2560af29..aa50d8fbc 100644 --- a/meson.build +++ b/meson.build @@ -71,8 +71,7 @@ jsoncpp_dep = declare_dependency( ) # tests -#python = import('python3').find_python() -python = find_program('python3', 'python') +python = import('python').find_installation() jsoncpp_test = executable( 'jsoncpp_test',