MCPcopy Index your code
hub / github.com/numpy/numpy / preparse_sysargv

Function preparse_sysargv

numpy/f2py/f2py2e.py:572–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

570 return parser
571
572def preparse_sysargv():
573 # To keep backwards bug compatibility, newer flags are handled by argparse,
574 # and `sys.argv` is passed to the rest of `f2py` as is.
575 parser = make_f2py_compile_parser()
576
577 args, remaining_argv = parser.parse_known_args()
578 sys.argv = [sys.argv[0]] + remaining_argv
579
580 backend_key = args.backend
581 if backend_key == 'distutils':
582 outmess("Cannot use distutils backend with Python>=3.12,"
583 " using meson backend instead.\n")
584 backend_key = "meson"
585
586 return {
587 "dependencies": args.dependencies or [],
588 "backend": backend_key,
589 "modulename": args.module_name,
590 }
591
592def run_compile():
593 """

Callers 1

run_compileFunction · 0.85

Calls 2

make_f2py_compile_parserFunction · 0.85
outmessFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…