From 81f9b40734126774da6067fd83de5d5d73fee9ee Mon Sep 17 00:00:00 2001 From: Yue Yang Date: Thu, 5 Oct 2023 23:11:08 +0800 Subject: [PATCH 1/3] Restrict meson-python to 0.13.2 temporarily meson-python 0.14.0 has a bug that handles rpath of python binding incorrectly. Use 0.13.2 temporarily as a fix. The upstream fix has landed in https://github.com/mesonbuild/meson-python/pull/510 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f9c274e473..ff19d98d7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ license = {text = "MIT"} "Bug Tracker" = "https://github.com/ERGO-Code/HiGHS/issues" [build-system] -requires = ["meson-python"] +requires = ["meson-python<0.14.0"] build-backend = "mesonpy" [tool.meson-python.args] From d88bf5b8bf9c4bb60a547ab8434e2f489ed42e47 Mon Sep 17 00:00:00 2001 From: metab0t Date: Sun, 8 Oct 2023 02:16:29 +0800 Subject: [PATCH 2/3] Restrict mesonpy version <0.14.0 and meson version >=1.2.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ff19d98d7e..e2170cb63f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ license = {text = "MIT"} "Bug Tracker" = "https://github.com/ERGO-Code/HiGHS/issues" [build-system] -requires = ["meson-python<0.14.0"] +requires = ["meson-python<0.14.0", "meson>=1.2.0"] build-backend = "mesonpy" [tool.meson-python.args] From 191f4effae9c7450073b5bf727fb087d012c5b7f Mon Sep 17 00:00:00 2001 From: metab0t Date: Sun, 8 Oct 2023 07:43:37 +0800 Subject: [PATCH 3/3] Restrict meson version in meson.build --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index b1104aa754..7eae2d3381 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,6 @@ project('highs', 'cpp', version : '1.6.0', + meson_version: '>= 1.2.0', default_options : ['warning_level=1', 'cpp_std=c++17', 'wrap_mode=forcefallback'])