From 6c115477262d64c605ef975c9592b7ae1bf30d67 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Mon, 12 Oct 2026 13:29:14 +0200 Subject: [PATCH] BUG: do not mutate install_rpath --- mesonpy/_rpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonpy/_rpath.py b/mesonpy/_rpath.py index 65039c665..c0aea7659 100644 --- a/mesonpy/_rpath.py +++ b/mesonpy/_rpath.py @@ -37,7 +37,7 @@ def fix_rpath(cls, filepath: Path, install_rpath: list[str], build_rpath: list[s old_rpath = cls.get_rpath(filepath) # Prepend install_rpath entries. - new_rpath = install_rpath + new_rpath = install_rpath[:] # Merge with existing entries, excluding build_rpath entries. Meson # adds a padding entry to RPATH composed of enough ``X`` characters