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

Function main

tools/check_openblas_version.py:80–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def main():
81 parser = argparse.ArgumentParser()
82 parser.add_argument(
83 "--req-files",
84 type=str,
85 help="Path to the requirements file to compare with the one in this repo"
86 )
87 parser.add_argument(
88 "--min-version",
89 type=str,
90 help="The minimum version that should have been used at build time for "
91 "installed `numpy` package"
92 )
93 args = parser.parse_args()
94
95 if args.min_version is None and args.req_files is None:
96 raise ValueError("One of `--req-files` or `--min-version` needs to be "
97 "specified")
98
99 if args.min_version:
100 check_built_version(args.min_version)
101
102 if args.req_files:
103 check_requirements_files(args.req_files)
104
105
106if __name__ == '__main__':

Callers 1

Calls 2

check_built_versionFunction · 0.85
check_requirements_filesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…