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)
| 1010 | |
| 1011 | @functools.cache |
| 1012 | def 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 | |
| 1027 | def is_path_synced( |
no test coverage detected