Skip to content

Commit

Permalink
core: libs: install-libs: Install BUILD_PACKAGES in all platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jan 31, 2024
1 parent cbd6a6b commit 606d228
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/libs/install-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ BUILD_PACKAGES=(

echo "Target architecture: $TARGETARCH"
echo "Target variant: $TARGETVARIANT"
# Install build packages if not on armv7 or amd64, which are the only platforms that have pre-built wheels
if ! { [ "$TARGETARCH" == "arm" ] && [ "$TARGETVARIANT" == "v7" ]; } && [ "$TARGETARCH" != "amd64" ]; then
apt update
apt install -y --no-install-recommends ${BUILD_PACKAGES[*]}
fi

# psutil requires BUILD_PACKAGES to build to all platforms
apt update
apt install -y --no-install-recommends ${BUILD_PACKAGES[*]}

# Piwheels is a Python package repository providing Arm platform wheels (pre-compiled binary Python packages)
# specifically for the Raspberry Pi, making pip installations much faster.
Expand Down

0 comments on commit 606d228

Please sign in to comment.