From bbf1a6feac0e88772be103a1b159b871b5c00b4a Mon Sep 17 00:00:00 2001 From: Klaus Zimmermann Date: Wed, 25 Jun 2025 14:24:12 +0200 Subject: [PATCH] Add dist_info to non-building setup.py commands (#156709) This adds the `dist_info` command to the list of non-building commands of `setup.py`, which avoids the current situation where simple metadata generation with any packaging tool already triggers a build. Pull Request resolved: https://github.com/pytorch/pytorch/pull/156709 Approved by: https://github.com/Skylion007 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3950fc540a1..67833b326f6 100644 --- a/setup.py +++ b/setup.py @@ -374,7 +374,7 @@ for i, arg in enumerate(sys.argv): break if arg == "-q" or arg == "--quiet": VERBOSE_SCRIPT = False - if arg in ["clean", "egg_info", "sdist"]: + if arg in ["clean", "dist_info", "egg_info", "sdist"]: RUN_BUILD_DEPS = False filtered_args.append(arg) sys.argv = filtered_args