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:
parent
48bfe83c3d
commit
05372f8508
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue