[fixed][kconfiglib]test kconfiglib is installed and info how to install

This commit is contained in:
LaterComer 2024-07-09 16:05:04 +08:00 committed by Meco Man
parent 15a8ebe0a0
commit f5a98c6fc8
1 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,17 @@ import shutil
import hashlib
import operator
# test kconfiglib is installed
try:
import kconfiglib
except ImportError as e:
print("Failed to import kconfiglib: " + str(e))
print("")
print("You may need to install it using:")
print(" pip install kconfiglib")
print("")
sys.exit(1)
DEFAULT_RTT_PACKAGE_URL = 'https://github.com/RT-Thread/packages.git'
# you can change the package url by defining RTT_PACKAGE_URL, ex:
# export RTT_PACKAGE_URL=https://github.com/Varanda-Labs/packages.git