Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Drop looping from the wheel verification script
This script is separate and is only used in CI as opposed to runtime.
  • Loading branch information
webknjaz committed Jan 25, 2024
commit 0d94ec981ca9491988a3132c0fd3ba75acba6aeb
6 changes: 1 addition & 5 deletions Tools/build/verify_ensurepip_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from pathlib import Path
from urllib.request import urlopen

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


if __name__ == "__main__":
exit_status = 0
for package_name in PACKAGE_NAMES:
if not verify_wheel(package_name):
exit_status = 1
exit_status = int(not verify_wheel("pip"))
raise SystemExit(exit_status)