Skip to content

Commit 0ef6527

Browse files
authored
fix: python3 version check with Python 3.10 (#18754)
Fixes #18753 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 0f59ead commit 0ef6527

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/check-build-prerequisites.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ app_min="3.6.5"
108108
check_which $app $app_min
109109
app_v=$(${app} --version)
110110
echo -e "Checking python3 version... \c"
111-
if [ $(echo $app_v | grep -c -E "3\.[6-9]+\.[0-9]+") -eq 1 ]
111+
if [ $(echo $app_v | grep -c -E "3\.([6-9]|1[0-9])\.[0-9]+") -eq 1 ]
112112
then
113113
echo "Ok"
114114
else

scripts/check-pack-prerequisites.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ app_min="3.6.5"
9898
check_which $app $app_min
9999
app_v=$(${app} --version)
100100
echo -e "Checking $app version... \c"
101-
if [ $(echo $app_v | grep -c -E "3\.[6789]\.[0-9].*") -eq 1 ]
101+
if [ $(echo $app_v | grep -c -E "3\.([6-9]|1[0-9])\.[0-9]+") -eq 1 ]
102102
then
103103
echo "Ok"
104104
else

0 commit comments

Comments
 (0)