--- tools/ci_build/build.py.orig 2026-08-15 00:00:00 UTC +++ tools/ci_build/build.py @@ -1953,6 +1953,8 @@ def build_python_wheel( cwd = os.path.join(cwd, config) args = [sys.executable, os.path.join(source_dir, "setup.py"), "bdist_wheel"] + if os.environ.get("ORT_DIST_DIR"): + args.extend(["--dist-dir", os.environ["ORT_DIST_DIR"]]) # Any combination of the following arguments can be applied if nightly_build: