瀏覽代碼

support/dependencies: don't check for python on the host

We no longer have anything that needs it during the build, so we don't
require it anymore.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Yann E. MORIN 5 年之前
父節點
當前提交
9c0c7846cd
共有 1 個文件被更改,包括 1 次插入14 次删除
  1. 1 14
      support/dependencies/dependencies.sh

+ 1 - 14
support/dependencies/dependencies.sh

@@ -160,7 +160,7 @@ fi
 
 # Check that a few mandatory programs are installed
 missing_progs="no"
-for prog in patch perl tar wget cpio python unzip rsync bc ${DL_TOOLS} ; do
+for prog in patch perl tar wget cpio unzip rsync bc ${DL_TOOLS} ; do
 	if ! which $prog > /dev/null ; then
 		echo "You must install '$prog' on your build machine";
 		missing_progs="yes"
@@ -180,14 +180,6 @@ if test "${missing_progs}" = "yes" ; then
 	exit 1
 fi
 
-# Check that the python version is at least 2.7
-PYTHON_VERSION=$(python -V 2>&1 |awk '{ split($2, v, "."); print v[1] v[2] }')
-if [ $PYTHON_VERSION -lt 27 ]; then
-	echo
-	echo "You have '$(python -V 2>&1)' installed.  Python >= 2.7 is required"
-	exit 1;
-fi
-
 if grep ^BR2_NEEDS_HOST_UTF8_LOCALE=y $BR2_CONFIG > /dev/null; then
 	if ! which locale > /dev/null ; then
 		echo
@@ -293,8 +285,3 @@ if [ -n "$missing_perl_modules" ] ; then
 	echo
 	exit 1
 fi
-
-if ! python -c "import argparse" > /dev/null 2>&1 ; then
-	echo "Your Python installation is not complete enough: argparse module is missing"
-	exit 1
-fi