Skip to content

Commit

Permalink
[Build] Support to use loosen version when failed to install python p…
Browse files Browse the repository at this point in the history
…ackages (sonic-net#14013)

Why I did it
[Build] Support to use loosen version when failed to install python packages
It is to fix the issue sonic-net#14012

How I did it
Try to use the installation command without constraint

How to verify it
  • Loading branch information
xumia committed Mar 10, 2023
1 parent 20a7bcc commit 6da487f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sonic-build-hooks/scripts/buildinfo_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ run_pip_command()

$REAL_COMMAND "${parameters[@]}"
local result=$?
if [ "$result" != 0 ]; then
echo "Failed to run the command with constraint, try to install with the original command" 1>&2
$REAL_COMMAND "$@"
result=$?
fi
rm $tmp_version_file
return $result
}
Expand Down

0 comments on commit 6da487f

Please sign in to comment.