Skip to content

Commit 669d96f

Browse files
committed
update scripts
1 parent a6e243d commit 669d96f

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

jlink-device-addon.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python3 "%EIDE_TOOL_JLINK_DEV_ADDON%\__main__.py" %*
2+
%EIDE_PY3_CMD% "%EIDE_TOOL_JLINK_DEV_ADDON%\__main__.py" %*

jlink-device-addon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
python3 "${EIDE_TOOL_JLINK_DEV_ADDON}/__main__.py" "$@"
2+
${EIDE_PY3_CMD} "${EIDE_TOOL_JLINK_DEV_ADDON}/__main__.py" "$@"

setup.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#!/bin/bash
22

3+
if [ x"$EIDE_PY3_CMD" == x"" ]; then
4+
echo "warning: EIDE_PY3_CMD not set, using system python."
5+
EIDE_PY3_CMD=python
6+
fi
7+
38
py_pkgs=(click cmsis_pack_manager pyelftools intervaltree dataclasses)
49

510
for name in ${py_pkgs[*]}
611
do
7-
python3 -m pip --no-cache-dir install $name -t ./ -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
12+
${EIDE_PY3_CMD} -m pip --no-cache-dir install $name -t ./ -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
813
done
914

10-
python3 ./__main__.py --help
15+
${EIDE_PY3_CMD} ./__main__.py --help
1116

1217
exit $?

0 commit comments

Comments
 (0)