MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_rust_deps

Function get_rust_deps

scripts/update_lib/deps.py:1012–1024  ·  view source on GitHub ↗

Get Rust/C dependencies (imports that don't exist in cpython/Lib/). Args: name: Module name cpython_prefix: CPython directory prefix Returns: Frozenset of imported module names that are built-in or C extensions

(name: str, cpython_prefix: str)

Source from the content-addressed store, hash-verified

1010
1011@functools.cache
1012def get_rust_deps(name: str, cpython_prefix: str) -> frozenset[str]:
1013 """Get Rust/C dependencies (imports that don't exist in cpython/Lib/).
1014
1015 Args:
1016 name: Module name
1017 cpython_prefix: CPython directory prefix
1018
1019 Returns:
1020 Frozenset of imported module names that are built-in or C extensions
1021 """
1022 all_imports = get_all_imports(name, cpython_prefix)
1023 soft_deps = get_soft_deps(name, cpython_prefix)
1024 return frozenset(all_imports - soft_deps)
1025
1026
1027def is_path_synced(

Callers 2

compute_todo_listFunction · 0.90
format_deps_treeFunction · 0.90

Calls 2

get_all_importsFunction · 0.85
get_soft_depsFunction · 0.85

Tested by

no test coverage detected