1- # Copyright 2022-2025 Broadcom.
1+ # Copyright 2022-2026 Broadcom.
22# SPDX-License-Identifier: Apache-2.0
33"""
44Installation and finalization functions for the build process.
@@ -246,8 +246,16 @@ def update_ensurepip(directory: pathlib.Path) -> None:
246246
247247 # Detect existing whl. Later versions of python don't include setuptools. We
248248 # only want to update whl files that python expects to be there
249- pip_version = "25.2"
249+ pip_version = "25.3"
250+ pip_whl = f"pip-{ pip_version } -py3-none-any.whl"
251+ pip_whl_path = "44/3c/d717024885424591d5376220b5e836c2d5293ce2011523c9de23ff7bf068"
252+
250253 setuptools_version = "80.9.0"
254+ setuptools_whl = f"setuptools-{ setuptools_version } -py3-none-any.whl"
255+ setuptools_whl_path = (
256+ "a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772"
257+ )
258+
251259 update_pip = False
252260 update_setuptools = False
253261 for file in bundle_dir .glob ("*.whl" ):
@@ -275,11 +283,9 @@ def update_ensurepip(directory: pathlib.Path) -> None:
275283 # Download whl files and update __init__.py
276284 init_file = directory / "ensurepip" / "__init__.py"
277285 if update_pip :
278- whl = f"pip-{ pip_version } -py3-none-any.whl"
279- whl_path = "b7/3f/945ef7ab14dc4f9d7f40288d2df998d1837ee0888ec3659c813487572faa"
280- url = f"https://files.pythonhosted.org/packages/{ whl_path } /{ whl } "
286+ url = f"https://files.pythonhosted.org/packages/{ pip_whl_path } /{ pip_whl } "
281287 download_url (url = url , dest = bundle_dir )
282- assert (bundle_dir / whl ).exists ()
288+ assert (bundle_dir / pip_whl ).exists ()
283289
284290 # Update __init__.py
285291 old = "^_PIP_VERSION.*"
@@ -288,11 +294,9 @@ def update_ensurepip(directory: pathlib.Path) -> None:
288294
289295 # setuptools
290296 if update_setuptools :
291- whl = f"setuptools-{ setuptools_version } -py3-none-any.whl"
292- whl_path = "a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772"
293- url = f"https://files.pythonhosted.org/packages/{ whl_path } /{ whl } "
297+ url = f"https://files.pythonhosted.org/packages/{ setuptools_whl_path } /{ setuptools_whl } "
294298 download_url (url = url , dest = bundle_dir )
295- assert (bundle_dir / whl ).exists ()
299+ assert (bundle_dir / setuptools_whl ).exists ()
296300
297301 # setuptools
298302 old = "^_SETUPTOOLS_VERSION.*"
0 commit comments