Skip to content

Commit c4ad3a8

Browse files
committed
Correction for extracting module name from req.txt entry
1 parent c5e35ea commit c4ad3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devops/scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ function installRequiredPythonPackages () {
17521752
# If the module specifier isn't a URL or .whl then extract the package's name
17531753
module_name=""
17541754
if [ "${package_name:0:4}" != "http" ] && [ "${package_name:(-4)}" != ".whl" ]; then
1755-
module_name=$(echo "$package_name" | sed 's/[<=>].*//g')
1755+
module_name=$(echo "$package_name" | sed 's/[<=>,~].*//g')
17561756
# Now remove any string from [ onwards to get 'module' from module[variant]
17571757
module_name=${module_name%%[*}
17581758
fi

0 commit comments

Comments
 (0)