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

Function main

PC/layout/main.py:541–725  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539
540
541def main():
542 parser = argparse.ArgumentParser()
543 parser.add_argument("-v", help="Increase verbosity", action="count")
544 parser.add_argument(
545 "-s",
546 "--source",
547 metavar="dir",
548 help="The directory containing the repository root",
549 type=Path,
550 default=None,
551 )
552 parser.add_argument(
553 "-b", "--build", metavar="dir", help="Specify the build directory", type=Path
554 )
555 parser.add_argument(
556 "--arch",
557 metavar="architecture",
558 help="Specify the target architecture",
559 type=str,
560 default=None,
561 )
562 parser.add_argument(
563 "--doc-build",
564 metavar="dir",
565 help="Specify the docs build directory",
566 type=Path,
567 default=None,
568 )
569 parser.add_argument(
570 "--copy",
571 metavar="directory",
572 help="The name of the directory to copy an extracted layout to",
573 type=Path,
574 default=None,
575 )
576 parser.add_argument(
577 "--zip",
578 metavar="file",
579 help="The ZIP file to write all files to",
580 type=Path,
581 default=None,
582 )
583 parser.add_argument(
584 "--catalog",
585 metavar="file",
586 help="The CDF file to write catalog entries to",
587 type=Path,
588 default=None,
589 )
590 parser.add_argument(
591 "--log",
592 metavar="file",
593 help="Write all operations to the specified file",
594 type=Path,
595 default=None,
596 )
597 parser.add_argument(
598 "-t",

Callers 2

__main__.pyFile · 0.90
main.pyFile · 0.70

Calls 15

parse_argsMethod · 0.95
PathClass · 0.90
get_argparse_optionsFunction · 0.85
update_presetsFunction · 0.85
calculate_from_build_dirFunction · 0.85
check_patchlevel_versionFunction · 0.85
log_errorFunction · 0.85
log_infoFunction · 0.85
log_warningFunction · 0.85
generate_source_filesFunction · 0.85
listClass · 0.85
copy_filesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…