Skip to content

Commit

Permalink
[build] Fix base OS compilation issue caused by incompatibility betwe…
Browse files Browse the repository at this point in the history
…en urllib3 and requests packages (sonic-net#3328)

* [build] Fix base OS compilation issue caused by incompatibility between urllib3 and requests packages

* [pipeline] Pin request package to v2.31.0
  • Loading branch information
ryanzhu706 committed May 31, 2024
1 parent a82da51 commit 8d8bd34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ stages:
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:$(BUILD_BRANCH)

steps:
- script: |
set -ex
sudo apt-get update
sudo apt-get install -y python3-pip
sudo pip3 install requests==2.31.0
displayName: "Install dependencies"
- script: |
sourceBranch=$(Build.SourceBranchName)
if [[ "$(Build.Reason)" == "PullRequest" ]];then
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
'semantic-version>=2.8.5',
'prettyprinter>=0.18.0',
'pyroute2>=0.5.14, <0.6.1',
'requests>=2.25.0',
'requests>=2.25.0, <=2.31.0',
'tabulate==0.9.0',
'toposort==1.6',
'www-authenticate==0.9.2',
Expand Down

0 comments on commit 8d8bd34

Please sign in to comment.