MCPcopy Create free account
hub / github.com/numpy/numpy / preparse_sysargv

Function preparse_sysargv

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

Source from the content-addressed store, hash-verified

559 return parser
560
561def preparse_sysargv():
562 # To keep backwards bug compatibility, newer flags are handled by argparse,
563 # and `sys.argv` is passed to the rest of `f2py` as is.
564 parser = make_f2py_compile_parser()
565
566 args, remaining_argv = parser.parse_known_args()
567 sys.argv = [sys.argv[0]] + remaining_argv
568
569 backend_key = args.backend
570 if MESON_ONLY_VER and backend_key == 'distutils':
571 outmess("Cannot use distutils backend with Python>=3.12,"
572 " using meson backend instead.\n")
573 backend_key = "meson"
574
575 return {
576 "dependencies": args.dependencies or [],
577 "backend": backend_key,
578 "modulename": args.module_name,
579 }
580
581def run_compile():
582 """

Callers 1

run_compileFunction · 0.85

Calls 2

make_f2py_compile_parserFunction · 0.85
outmessFunction · 0.70

Tested by

no test coverage detected