From e6be201d148e52d71d74d2900749741ddec017d9 Mon Sep 17 00:00:00 2001 From: latercomer Date: Sun, 30 Jun 2024 15:01:45 +0800 Subject: [PATCH] =?UTF-8?q?install=5Fxxx=E4=B8=AD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AE=89=E8=A3=85kconfiglib=E4=BE=9D=E8=B5=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_macos.sh | 5 +++++ install_suse.sh | 2 +- install_ubuntu.sh | 2 +- install_windows.ps1 | 9 +++++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/install_macos.sh b/install_macos.sh index fa5eecd..60418d5 100755 --- a/install_macos.sh +++ b/install_macos.sh @@ -46,6 +46,11 @@ if ! [ -x "$(command -v tqdm)" ]; then $RTT_PYTHON -m pip install tqdm fi +if ! [ -x "$(command -v kconfiglib)" ]; then + echo "Installing kconfiglib." + $RTT_PYTHON -m pip install kconfiglib +fi + if ! [ -x "$(command -v pyocd)" ]; then echo "Installing pyocd." $RTT_PYTHON -m pip install -U pyocd diff --git a/install_suse.sh b/install_suse.sh index 1bf7442..8fed78c 100755 --- a/install_suse.sh +++ b/install_suse.sh @@ -3,7 +3,7 @@ sudo zypper update -y sudo zypper install python3 python3-pip gcc git ncurses-devel cross-arm-none-gcc11-bootstrap cross-arm-binutils qemu qemu-arm qemu-extra -y -python3 -m pip install scons requests tqdm +python3 -m pip install scons requests tqdm kconfiglib python3 -m pip install -U pyocd url=https://raw.githubusercontent.com/RT-Thread/env/master/touch_env.sh diff --git a/install_ubuntu.sh b/install_ubuntu.sh index e86053e..8423ba8 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -4,7 +4,7 @@ sudo apt-get update sudo apt-get upgrade -y sudo apt-get -qq install python3 python3-pip gcc git libncurses5-dev gcc-arm-none-eabi binutils-arm-none-eabi gdb-multiarch qemu qemu-system-arm -y -python3 -m pip install scons requests tqdm +python3 -m pip install scons requests tqdm kconfiglib python3 -m pip install -U pyocd url=https://raw.githubusercontent.com/RT-Thread/env/master/touch_env.sh diff --git a/install_windows.ps1 b/install_windows.ps1 index e6c0e3e..a3bc869 100644 --- a/install_windows.ps1 +++ b/install_windows.ps1 @@ -90,6 +90,15 @@ if (!$?) { echo "tqdm module has installed. Jump this step." } +cmd /c $RTT_PYTHON -m pip list -i $PIP_SOURCE --trusted-host $PIP_HOST | findstr "kconfiglib" | Out-Null +if (!$?) { + echo "Installing kconfiglib module." + cmd /c $RTT_PYTHON -m pip install kconfiglib -i $PIP_SOURCE --trusted-host $PIP_HOST +} else { + echo "kconfiglib module has installed. Jump this step." +} + + cmd /c $RTT_PYTHON -m pip list -i $PIP_SOURCE --trusted-host $PIP_HOST | findstr "requests" | Out-Null if (!$?) { echo "Installing requests module."