File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -468,10 +468,13 @@ def is_up_to_date(
468468
469469 lib_paths = get_lib_paths (name , cpython_prefix )
470470
471+ found_any = False
471472 for cpython_path in lib_paths :
472473 if not cpython_path .exists ():
473474 continue
474475
476+ found_any = True
477+
475478 # Convert cpython path to local path
476479 # cpython/Lib/foo.py -> Lib/foo.py
477480 rel_path = cpython_path .relative_to (cpython_prefix )
@@ -489,7 +492,7 @@ def is_up_to_date(
489492 if not _dircmp_is_same (dcmp ):
490493 return False
491494
492- return True
495+ return found_any
493496
494497
495498def get_test_dependencies (
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ def format_deps_tree(
8686 List of formatted lines
8787 """
8888 from update_lib .deps import (
89+ get_lib_paths ,
8990 get_rust_deps ,
9091 get_soft_deps ,
9192 is_up_to_date ,
@@ -111,6 +112,11 @@ def format_deps_tree(
111112 dup_deps = []
112113
113114 for dep in soft_deps :
115+ # Skip if library doesn't exist in cpython
116+ lib_paths = get_lib_paths (dep , cpython_prefix )
117+ if not any (p .exists () for p in lib_paths ):
118+ continue
119+
114120 up_to_date = is_up_to_date (dep , cpython_prefix , lib_prefix )
115121 if up_to_date :
116122 # Up-to-date modules collected compactly, no dup tracking needed
You can’t perform that action at this time.
0 commit comments