-$(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 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 -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 -V 2>&1 | grep -E 'Python 3\.[5-9]\.?'))