From 775b3c88e2ed9915723cdbbfeebced5024d6cf3f Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Wed, 30 Jul 2025 19:20:33 +0200 Subject: [PATCH] EHN: normalize paths coming from meson introspection data Meson 1.9.0 changes some paths stored in introspection data use POSIX-style path separators on Windows too. This adds path normalization where it matters. Fixes #778. --- mesonpy/_editable.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mesonpy/_editable.py b/mesonpy/_editable.py index 02067cd43..16469b8ca 100644 --- a/mesonpy/_editable.py +++ b/mesonpy/_editable.py @@ -244,6 +244,7 @@ def collect(install_plan: Dict[str, Dict[str, Any]]) -> Node: tree = Node() for key, data in install_plan.items(): for src, target in data.items(): + src = os.path.normpath(src) path = pathlib.Path(target['destination']) if path.parts[0] in {'{py_platlib}', '{py_purelib}'}: if key == 'install_subdirs' or key == 'targets' and os.path.isdir(src):