-$(eval $(call SetupHostCommand,python,Please install Python 2.x, \
- python2.7 -V 2>&1 | grep Python, \
- python2 -V 2>&1 | grep Python, \
- python -V 2>&1 | grep Python))
-
-$(eval $(call SetupHostCommand,svn,Please install the Subversion client, \
- svn --version | grep Subversion))
-
-$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.6.5, \
- git clone 2>&1 | grep -- --recursive))
+$(eval $(call SetupHostCommand,python,Please install Python >= 3.7, \
+ python3.11 -V 2>&1 | grep 'Python 3', \
+ python3.10 -V 2>&1 | grep 'Python 3', \
+ python3.9 -V 2>&1 | grep 'Python 3', \
+ python3.8 -V 2>&1 | grep 'Python 3', \
+ python3.7 -V 2>&1 | grep 'Python 3', \
+ python3 -V 2>&1 | grep -E 'Python 3\.([7-9]|[0-9][0-9])\.?'))
+
+$(eval $(call SetupHostCommand,python3,Please install Python >= 3.7, \
+ python3.11 -V 2>&1 | grep 'Python 3', \
+ python3.10 -V 2>&1 | grep 'Python 3', \
+ python3.9 -V 2>&1 | grep 'Python 3', \
+ python3.8 -V 2>&1 | grep 'Python 3', \
+ python3.7 -V 2>&1 | grep 'Python 3', \
+ python3 -V 2>&1 | grep -E 'Python 3\.([7-9]|[0-9][0-9])\.?'))
+
+$(eval $(call TestHostCommand,python3-distutils, \
+ Please install the Python3 distutils module, \
+ $(STAGING_DIR_HOST)/bin/python3 -c 'from distutils import util'))
+
+$(eval $(call TestHostCommand,python3-stdlib, \
+ Please install the Python3 stdlib module, \
+ $(STAGING_DIR_HOST)/bin/python3 -c 'import ntpath'))