Skip to content

Commit 71719f0

Browse files
committed
Drop looping from the wheel verification script
This script is separate and is only used in CI as opposed to runtime.
1 parent 951012c commit 71719f0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tools/build/verify_ensurepip_wheels.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from pathlib import Path
1515
from urllib.request import urlopen
1616

17-
PACKAGE_NAMES = ("pip",)
1817
ENSURE_PIP_ROOT = Path(__file__).parent.parent.parent / "Lib/ensurepip"
1918
WHEEL_DIR = ENSURE_PIP_ROOT / "_bundled"
2019
ENSURE_PIP_INIT_PY_TEXT = (ENSURE_PIP_ROOT / "__init__.py").read_text(encoding="utf-8")
@@ -97,8 +96,5 @@ def verify_wheel(package_name: str) -> bool:
9796

9897

9998
if __name__ == "__main__":
100-
exit_status = 0
101-
for package_name in PACKAGE_NAMES:
102-
if not verify_wheel(package_name):
103-
exit_status = 1
99+
exit_status = int(not verify_wheel("pip"))
104100
raise SystemExit(exit_status)

0 commit comments

Comments
 (0)