From 5cdc0521a217bc1af66964aeae55ce4f89b9b7ae Mon Sep 17 00:00:00 2001 From: Ethan Wee Date: Thu, 6 Nov 2025 06:30:55 -0800 Subject: [PATCH] [rocm7.1_internal_testing] Remove --no-use-pep517 (#2786) We are removing the flag `--use-pep517` as it been deprecated in pip >=25.3. Fixes https://ontrack-internal.amd.com/browse/SWDEV-564417 Fails with: ``` + python3 -m pip wheel --no-build-isolation --no-deps --no-use-pep517 -w dist/vision git+https://github.com/pytorch/vision.git@966da7e46f65d6d49df3e31214470a4fe5cc8e66 Usage: /opt/venv/bin/python3 -m pip wheel [options] ... /opt/venv/bin/python3 -m pip wheel [options] -r ... /opt/venv/bin/python3 -m pip wheel [options] [-e] ... /opt/venv/bin/python3 -m pip wheel [options] [-e] ... /opt/venv/bin/python3 -m pip wheel [options] ... no such option: --no-use-pep517 ``` After removing the flag ``` python3 -m pip wheel --no-build-isolation --no-deps -w dist/vision git+https://github.com/pytorch/vision.git@966da7e46f65d6d49df3e31214470a4fe5cc8e66 Collecting git+https://github.com/pytorch/vision.git@966da7e46f65d6d49df3e31214470a4fe5cc8e66 Cloning https://github.com/pytorch/vision.git (to revision 966da7e46f65d6d49df3e31214470a4fe5cc8e66) to /tmp/pip-req-build-otbwsr_y ``` --- .ci/pytorch/common_utils.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/.ci/pytorch/common_utils.sh b/.ci/pytorch/common_utils.sh index bf03e132d30bb..93a2f1eea25d9 100644 --- a/.ci/pytorch/common_utils.sh +++ b/.ci/pytorch/common_utils.sh @@ -96,7 +96,6 @@ function pip_build_and_install() { python3 -m pip wheel \ --no-build-isolation \ --no-deps \ - --no-use-pep517 \ -w "${wheel_dir}" \ "${build_target}" fi