MCPcopy Index your code
hub / github.com/python/cpython / lib_non_platform_files

Function lib_non_platform_files

Platforms/Apple/__main__.py:503–513  ·  view source on GitHub ↗

A file filter that ignores anything *except* platform-specific files in the lib directory.

(dirname, names)

Source from the content-addressed store, hash-verified

501
502
503def lib_non_platform_files(dirname, names):
504 """A file filter that ignores anything *except* platform-specific files
505 in the lib directory.
506 """
507 path = Path(dirname)
508 if path.parts[-2] == "lib" and path.parts[-1].startswith("python"):
509 return (
510 set(names) - lib_platform_files(dirname, names) - {"lib-dynload"}
511 )
512 else:
513 return set()
514
515
516def create_xcframework(platform: str) -> str:

Callers

nothing calls this directly

Calls 4

PathClass · 0.90
setFunction · 0.85
lib_platform_filesFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…