Skip to content

Commit 1514a02

Browse files
committed
tooling: Group pip runtime dependencies
1 parent b9b673c commit 1514a02

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

oasis_tooling/scripts/rdepinstall_oasis.sh

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,33 @@ fi
7878

7979
sudo apt install -y --no-install-recommends "${APT_PACKAGES[@]}"
8080

81-
sudo python3 -m pip install \
82-
--upgrade \
83-
--ignore-installed \
84-
--break-system-packages \
85-
mediapipe==0.10.21 \
81+
# Packages to install via pip
82+
PYTHON_PACKAGES=(
8683
psutil \
8784
git+https://github.com/eigendude/pymata-express@master#egg=pymata-express \
8885
pyserial \
8986
telemetrix-aio \
87+
)
88+
89+
# If running on ARM, the latest MediaPipe is v0.10.18
90+
if [[ ${PLATFORM_ARCH} == arm* ]]; then
91+
PYTHON_PACKAGES+=(
92+
mediapipe==0.10.18
93+
)
94+
else
95+
PYTHON_PACKAGES+=(
96+
mediapipe==0.10.21
97+
)
98+
fi
9099

91100
# Install Matplotlib from pip to ensure Mediapipe's 3-D tooling has the newer
92101
# wheel even when an older apt package is already present on the system.
102+
PYTHON_PACKAGES+=(
103+
matplotlib
104+
)
105+
93106
sudo python3 -m pip install \
94107
--upgrade \
95108
--ignore-installed \
96109
--break-system-packages \
97-
matplotlib
110+
"${PYTHON_PACKAGES[@]}"

0 commit comments

Comments
 (0)