Skip to content

Commit 63e7c61

Browse files
committed
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.
1 parent d8ed599 commit 63e7c61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mesonpy/_editable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def collect(install_plan: Dict[str, Dict[str, Any]]) -> Node:
244244
tree = Node()
245245
for key, data in install_plan.items():
246246
for src, target in data.items():
247+
src = os.path.normpath(src)
247248
path = pathlib.Path(target['destination'])
248249
if path.parts[0] in {'{py_platlib}', '{py_purelib}'}:
249250
if key == 'install_subdirs' or key == 'targets' and os.path.isdir(src):

0 commit comments

Comments
 (0)