Set PIP_BREAK_SYSTEM_PACKAGES=1 instead of using --break-system-packages - it should fix the install issues for older versions of Ubuntu.

This commit is contained in:
Herbert Wolverson 2024-10-31 12:26:04 -05:00
parent f3ea4a269b
commit dcd8e68486

View File

@ -61,8 +61,8 @@ echo "#!/bin/bash" >> postinst
echo "# Install Python Dependencies" >> postinst
echo "pushd /opt/libreqos" >> postinst
# - Setup Python dependencies as a post-install task
echo "python3 -m pip install --break-system-packages -r src/requirements.txt" >> postinst
echo "sudo python3 -m pip install --break-system-packages -r src/requirements.txt" >> postinst
echo "PIP_BREAK_SYSTEM_PACKAGES=1 python3 -m pip install -r src/requirements.txt" >> postinst
echo "PIP_BREAK_SYSTEM_PACKAGES=1 sudo python3 -m pip install -r src/requirements.txt" >> postinst
# - Run lqsetup
echo "/opt/libreqos/src/bin/lqos_setup" >> postinst
# - Setup the services