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 (#14013)

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

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

How to verify it
  • Loading branch information
xumia authored and mssonicbld committed Mar 7, 2023
1 parent 1098f6e commit 850a044
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 @@ -208,6 +208,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 850a044

Please sign in to comment.