From 28ff8d286b78001ba00cf9a22dcd7b97b9f436aa Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 25 Sep 2026 23:09:27 +0200 Subject: [PATCH 1/4] MAINT: add an assert to aid debugging --- mesonpy/_rpath.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonpy/_rpath.py b/mesonpy/_rpath.py index 662b99b8a..65039c665 100644 --- a/mesonpy/_rpath.py +++ b/mesonpy/_rpath.py @@ -104,6 +104,10 @@ def set_rpath(filepath: Path, old: list[str], rpath: list[str]) -> None: add = rpath[keep:] if delete: + # ``install_name_tool`` does not accept repeated ``-delete_rpath`` + # arguments. There should not be duplicated in the existing RPATH, + # but the assert should make this occurrence easier to debug. + assert unique(delete) == delete args = [a for p in delete for a in ('-delete_rpath', p)] subprocess.run(['install_name_tool', *args, os.fspath(filepath)], check=True) From ba1d3065104f9a19bd097bdf5814cb45fd5240ec Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 25 Sep 2026 22:39:06 +0200 Subject: [PATCH 2/4] DOC:update changelog for release 0.22.0 --- CHANGELOG.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f3192d90c..e279d9e05 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,19 @@ Changelog +++++++++ +0.22.0 +====== + +- Add support for adding RPATH entries specified with ``install_rpath`` + argument to Meson functions that accept it. +- Add support for removing build RPATH entries added by Meson to allow + executing parts of the project from the build directory. +- Fix corner cases in handling RPATH entries and relocation of shared + libraries distributed as part of Python packages. + +Daniele Nicolodi, Mike Taves, Nathan Goldbaum, Ralf Gommers --- 25-09-2026. + + 0.21.1 ====== From 7ff23dfde4c8219a6aab0967181189d11fa5f38b Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 25 Sep 2026 22:40:09 +0200 Subject: [PATCH 3/4] REL: set version to 0.22.0 --- mesonpy/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index a397db8a1..3265688b3 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -85,7 +85,7 @@ class InvalidLicenseExpression(Exception): # type: ignore[no-redef] Path = Union[str, os.PathLike[str]] -__version__ = '0.22.0.dev0' +__version__ = '0.22.0' _PYPROJECT_METADATA_VERSION = tuple(map(int, pyproject_metadata.__version__.split('.')[:2])) diff --git a/pyproject.toml b/pyproject.toml index df598d8fc..141e80022 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ requires = [ [project] name = 'meson-python' -version = '0.22.0.dev0' +version = '0.22.0' description = 'The Python build backend for Meson projects' readme = 'README.rst' requires-python = '>= 3.10' From 6912c8ebb85a9ba0a0f19cd767f9184c86b2f989 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 25 Sep 2026 22:40:56 +0200 Subject: [PATCH 4/4] MAINT: set version to 0.23.0.dev0 --- mesonpy/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonpy/__init__.py b/mesonpy/__init__.py index 3265688b3..928d8acb0 100644 --- a/mesonpy/__init__.py +++ b/mesonpy/__init__.py @@ -85,7 +85,7 @@ class InvalidLicenseExpression(Exception): # type: ignore[no-redef] Path = Union[str, os.PathLike[str]] -__version__ = '0.22.0' +__version__ = '0.23.0.dev0' _PYPROJECT_METADATA_VERSION = tuple(map(int, pyproject_metadata.__version__.split('.')[:2])) diff --git a/pyproject.toml b/pyproject.toml index 141e80022..bffd83490 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ requires = [ [project] name = 'meson-python' -version = '0.22.0' +version = '0.23.0.dev0' description = 'The Python build backend for Meson projects' readme = 'README.rst' requires-python = '>= 3.10'