Skip to content

Commit 93c9367

Browse files
committed
Ignore cmdline.py in update-meson script
1 parent eea694a commit 93c9367

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/update-meson.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def _symbol(val: str) -> SymbolNode:
7979

8080
def update_python_sources(self: Rewriter, visitor: AstPython):
8181
for target in visitor.install_sources_calls:
82+
ignored_files = {('src/sage/tests', 'cmdline.py')}
8283
# Generate the current source list
8384
src_list: list[str] = []
8485
for arg in arg_list_from_node(target):
@@ -93,7 +94,7 @@ def update_python_sources(self: Rewriter, visitor: AstPython):
9394
to_append: list[StringNode] = []
9495
for file in python_files:
9596
file_name = file.name
96-
if file_name in src_list:
97+
if file_name in src_list or (str(folder), file_name) in ignored_files:
9798
continue
9899
token = Token("string", target.filename, 0, 0, 0, None, file_name)
99100
to_append += [StringNode(token)]

0 commit comments

Comments
 (0)