Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ setup_earlyoom_service() {
create_venv(){
echo "Creating python virtual environment. "
python3 -m venv "$VENV_PATH"
$VENV_PATH/bin/python -m pip install --upgrade pip setuptools wheel > /dev/null
$VENV_PATH/bin/python -m pip install -r $PIP_REQUIREMENTS_FILE -qq > /dev/null &
$VENV_PATH/bin/python -m pip install --extra-index-url https://www.piwheels.org/simple --upgrade pip setuptools wheel > /dev/null
$VENV_PATH/bin/python -m pip install --extra-index-url https://www.piwheels.org/simple -r $PIP_REQUIREMENTS_FILE -qq > /dev/null &
Comment on lines +211 to +212
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The piwheels repository is only available for ARMv6/ARMv7/ARMv8 architectures (Raspberry Pi). Using --extra-index-url makes pip fall back to PyPI if packages aren't found on piwheels, but this change will cause installation to fail on non-ARM architectures if the package exists on piwheels but is incompatible with the host architecture.

The install script doesn't detect the system architecture before adding the piwheels index. Consider adding an architecture check to conditionally include the piwheels URL only when running on ARM-based systems. For example, you could check if the output of 'uname -m' is 'armv6l', 'armv7l', or 'aarch64' before adding the --extra-index-url flag.

Copilot uses AI. Check for mistakes.
Comment on lines +211 to +212
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update.sh script also contains pip install commands (lines 109 and 114) that should be updated to use piwheels for consistency with the install.sh changes. Without this update, subsequent updates will not benefit from the faster piwheels installation on Raspberry Pi devices. The same architecture detection approach suggested for install.sh should be applied here as well.

Copilot uses AI. Check for mistakes.
show_loader "\tInstalling python dependencies. "

# do additional dependencies for Waveshare support.
if [[ -n "$WS_TYPE" ]]; then
echo "Adding additional dependencies for waveshare to the python virtual environment. "
$VENV_PATH/bin/python -m pip install -r $WS_REQUIREMENTS_FILE > ws_pip_install.log &
$VENV_PATH/bin/python -m pip install --extra-index-url https://www.piwheels.org/simple -r $WS_REQUIREMENTS_FILE > ws_pip_install.log &
show_loader "\tInstalling additional Waveshare python dependencies. "
fi

Expand Down
Loading