|
@@ -160,7 +160,7 @@ fi
|
|
|
|
|
|
# Check that a few mandatory programs are installed
|
|
# Check that a few mandatory programs are installed
|
|
missing_progs="no"
|
|
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
|
|
if ! which $prog > /dev/null ; then
|
|
echo "You must install '$prog' on your build machine";
|
|
echo "You must install '$prog' on your build machine";
|
|
missing_progs="yes"
|
|
missing_progs="yes"
|
|
@@ -180,14 +180,6 @@ if test "${missing_progs}" = "yes" ; then
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
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 grep ^BR2_NEEDS_HOST_UTF8_LOCALE=y $BR2_CONFIG > /dev/null; then
|
|
if ! which locale > /dev/null ; then
|
|
if ! which locale > /dev/null ; then
|
|
echo
|
|
echo
|
|
@@ -293,8 +285,3 @@ if [ -n "$missing_perl_modules" ] ; then
|
|
echo
|
|
echo
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
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
|
|
|