ソースを参照

build: prereq: simplify Python 3 version checks

We don't need to check if python3.5 binary is actually Python 3.5+.

Signed-off-by: Petr Štetiar <[email protected]>
Petr Štetiar 6 年 前
コミット
c001ace8bd
1 ファイル変更6 行追加6 行削除
  1. 6 6
      include/prereq-build.mk

+ 6 - 6
include/prereq-build.mk

@@ -144,15 +144,15 @@ $(eval $(call SetupHostCommand,perl,Please install Perl 5.x, \
 $(eval $(call CleanupPython2))
 
 $(eval $(call SetupHostCommand,python,Please install Python >= 3.5, \
-	python3.7 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?', \
-	python3.6 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?', \
-	python3.5 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?', \
+	python3.7 -V 2>&1 | grep 'Python 3', \
+	python3.6 -V 2>&1 | grep 'Python 3', \
+	python3.5 -V 2>&1 | grep 'Python 3', \
 	python3 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?'))
 
 $(eval $(call SetupHostCommand,python3,Please install Python >= 3.5, \
-	python3.7 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?', \
-	python3.6 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?', \
-	python3.5 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?', \
+	python3.7 -V 2>&1 | grep 'Python 3', \
+	python3.6 -V 2>&1 | grep 'Python 3', \
+	python3.5 -V 2>&1 | grep 'Python 3', \
 	python3 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?'))
 
 $(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \