Skip to content

Commit 63ced84

Browse files
xumiamssonicbld
authored andcommitted
[Build] Support to use loosen version when failed to install python packages (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
1 parent 1757f53 commit 63ced84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sonic-build-hooks/scripts/buildinfo_base.sh

+5
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ run_pip_command()
217217

218218
$REAL_COMMAND "${parameters[@]}"
219219
local result=$?
220+
if [ "$result" != 0 ]; then
221+
echo "Failed to run the command with constraint, try to install with the original command" 1>&2
222+
$REAL_COMMAND "$@"
223+
result=$?
224+
fi
220225
rm $tmp_version_file
221226
return $result
222227
}

0 commit comments

Comments
 (0)