def main()

in build.py [0:0]


def main():
    cmd_line_args = parse_arguments()

    source_dir = os.path.realpath(os.path.dirname(__file__))
    cwd = os.path.normpath(os.path.join(source_dir, ".."))

    if not cmd_line_args.wheel_file:
        build_wheel(source_dir, source_dir)
    else:
        print("cmd_line_args.wheel_file: ", cmd_line_args.wheel_file)
        print("With Devops pipeline, please confirm that the wheel file matches the one being built from a previous step.")
        run_subprocess([sys.executable, "-m", "pip", "install", "--upgrade", cmd_line_args.wheel_file], cwd)
        run_subprocess([sys.executable, "-m", "torch_ort.configure"], cwd)

        # installing requirements-test.txt
        requirements_path = os.path.join(source_dir, 'tests', 'requirements-test.txt')
        run_subprocess([sys.executable, "-m", "pip", "install", "-r", requirements_path], cwd)

        # testing torch-ort
        run_ort_module_tests(source_dir, source_dir)