[Build] Support to use loosen version when failed to install python packages (#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
This commit is contained in:
parent
06be00525a
commit
280939b5c9
@ -183,6 +183,11 @@ run_pip_command()
|
|||||||
|
|
||||||
$REAL_COMMAND "${parameters[@]}"
|
$REAL_COMMAND "${parameters[@]}"
|
||||||
local result=$?
|
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
|
rm $tmp_version_file
|
||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user