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

Function get_extra_flags

Tools/peg_generator/pegen/build.py:25–30  ·  view source on GitHub ↗
(compiler_flags: str, compiler_py_flags_nodist: str)

Source from the content-addressed store, hash-verified

23
24
25def get_extra_flags(compiler_flags: str, compiler_py_flags_nodist: str) -> list[str]:
26 flags = sysconfig.get_config_var(compiler_flags)
27 py_flags_nodist = sysconfig.get_config_var(compiler_py_flags_nodist)
28 if flags is None or py_flags_nodist is None:
29 return []
30 return f"{flags} {py_flags_nodist}".split()
31
32
33def fixup_build_ext(cmd: Incomplete) -> None:

Callers 1

compile_c_extensionFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…