Skip to content

Update pip install commands to use piwheels#588

Open
kinto0 wants to merge 1 commit intofatihak:mainfrom
kinto0:patch-2
Open

Update pip install commands to use piwheels#588
kinto0 wants to merge 1 commit intofatihak:mainfrom
kinto0:patch-2

Conversation

@kinto0
Copy link

@kinto0 kinto0 commented Feb 11, 2026

my raspberry pi zero could never finish the install script (stuck on Installing python dependencies. [/], was it building from source?). I waited ~16 hours. by using pywheels, it finishes in a few minutes.

my raspberry pi zero could never finsih the install script. I waited ~16 hours. by using pywheels, it finishes in a few minutes.
Copilot AI review requested due to automatic review settings February 11, 2026 21:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the installation script to use piwheels as an additional package index for pip installations. The change aims to significantly reduce installation time on Raspberry Pi Zero devices by using pre-built ARM wheels instead of compiling packages from source.

Changes:

  • Added --extra-index-url https://www.piwheels.org/simple flag to all pip install commands in the create_venv() function in install.sh

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +211 to +212
$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 &
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
$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 &
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants