Skip to content

Commit d5cb621

Browse files
bruchar1dnicolodi
authored andcommitted
BUG: handle install plan with null tag
Handle tags in the same way as meson install: strip white space from tags passed via the --tags meson install command line option, do not strip tags specified in meson.build and obtained from install_plan entries. Fixes #421.
1 parent fb26702 commit d5cb621

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mesonpy/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -853,11 +853,10 @@ def _install_plan(self) -> Dict[str, Dict[str, Dict[str, str]]]:
853853

854854
# filter the install_plan for files that do not fit the install tags
855855
if args.tags:
856-
install_tags = args.tags.split(',')
857-
856+
install_tags = {tag.strip() for tag in args.tags.split(',')}
858857
for files in install_plan.values():
859858
for file, details in list(files.items()):
860-
if details['tag'].strip() not in install_tags:
859+
if details['tag'] not in install_tags:
861860
del files[file]
862861

863862
return install_plan

0 commit comments

Comments
 (0)