1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

scripts/ansible: Interim /etc/pip.conf for "32-bit" RasPiOS 12

This commit is contained in:
A Holt 2023-09-10 21:03:27 -04:00 committed by GitHub
parent 48bfe83c3d
commit 05372f8508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,17 @@ else
echo -e "\nCreate virtual environment for Ansible"
python3 -m venv /usr/local/ansible
# 2023-09-10: Work around #3526 "32-bit" RasPiOS 12 pre-release issue...
# 'Package issue: cryptography 41.0.3 leads to cffi 1.15.1 failure on
# "32-bit" Raspberry Pi OS [REASON: /etc/pip.conf missing on some Bookworm
# pre-releases' == https://github.com/piwheels/packages/issues/390
if ! [ -f /etc/pip.conf ] && [ -f /etc/rpi-issue ]; then
cat > /etc/pip.conf << EOF
[global]
extra-index-url=https://www.piwheels.org/simple
EOF
fi
# "if not ubuntu" (covers RasPiOS & Debian) would also work, but is overbroad:
# if ! grep -qi ubuntu /etc/os-release; then
#