bootstrap: add python2 error check
Fail hard when run under Python 2. This catches delegated commands as well, since those are run by this file. Signed-off-by: Marti Bolivar <marti@foundries.io>
This commit is contained in:
parent
f8c2929dee
commit
c5dd4f4c20
|
@ -13,6 +13,9 @@ import platform
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
if sys.version_info < (3,):
|
||||
sys.exit('fatal error: you are running Python 2')
|
||||
|
||||
MANIFEST = 'manifest'
|
||||
MANIFEST_DEFAULT = 'https://github.com/zephyrproject-rtos/manifest'
|
||||
MANIFEST_REV_DEFAULT = 'master'
|
||||
|
|
Loading…
Reference in New Issue