Skip to content

[ci] replace python3-pip with uv in pipeline#858

Closed
yijingyan2 wants to merge 1 commit into
sonic-net:masterfrom
yijingyan2:replace-pip
Closed

[ci] replace python3-pip with uv in pipeline#858
yijingyan2 wants to merge 1 commit into
sonic-net:masterfrom
yijingyan2:replace-pip

Conversation

@yijingyan2

@yijingyan2 yijingyan2 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

Replace pip3 (python3-pip) with uv pip in the CI pipeline for installing and uninstalling Python packages.

Motivation and Context

python3-pip has been removed from the CI agent (sonic-slave-trixie) due to security alerts. uv is provided as its replacement. This change updates all pip3 install / pip3 uninstall calls to the equivalent uv pip install --system / uv pip uninstall --system --yes commands.

Note: python3 -m build -n is left unchanged — python3-build is installed as a separate Debian package in sonic-slave-trixie and is not affected by the removal of python3-pip.

How Has This Been Tested?

CI pipeline run triggered on this PR.

Additional Information (Optional)

Signed-off-by: Yijing Yan <yijingyan@microsoft.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@lunyue-ms lunyue-ms left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yijingyan2 yijingyan2 closed this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants