[Build]: Fix pip version constraint conflict issue (#10525)
Why I did it [Build]: Fix pip version constraint conflict issue When a version is specified in the constraint file, if upgrading the version in build script, it will have conflict issue. How I did it If a specified version has specified in pip command line, then the version constraint will be skipped.
This commit is contained in:
parent
c49206a884
commit
de46150430
@ -169,6 +169,10 @@ run_pip_command()
|
|||||||
elif [[ "$para" == *.whl ]]; then
|
elif [[ "$para" == *.whl ]]; then
|
||||||
package_name=$(echo $para | cut -d- -f1 | tr _ .)
|
package_name=$(echo $para | cut -d- -f1 | tr _ .)
|
||||||
$SUDO sed "/^${package_name}==/d" -i $tmp_version_file
|
$SUDO sed "/^${package_name}==/d" -i $tmp_version_file
|
||||||
|
elif [[ "$para" == *==* ]]; then
|
||||||
|
# fix pip package constraint conflict issue
|
||||||
|
package_name=$(echo $para | cut -d= -f1)
|
||||||
|
$SUDO sed "/^${package_name}==/d" -i $tmp_version_file
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user