Merge pull request #2 from ShaYmez/copilot/fix-attrs-installation-error

Add --break-system-packages flag to fix pip install failures on modern Linux distributions
This commit is contained in:
M0VUB 2025-12-13 02:50:25 +00:00 committed by GitHub
commit 74113a6d9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View File

@ -24,11 +24,11 @@ COPY entrypoint /entrypoint
RUN adduser -D -u 54000 radio
RUN apk update && \
apk add git gcc musl-dev libffi-dev openssl-dev cargo && \
pip install --upgrade pip && \
pip install --upgrade pip --break-system-packages && \
pip cache purge && \
git clone https://github.com/shaymez/HBMonv2.git /hbmon && \
cd /hbmon && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir --break-system-packages -r requirements.txt && \
apk del git gcc musl-dev libffi-dev openssl-dev && \
chown -R radio /hbmon

View File

@ -10,6 +10,9 @@ information and on the subpages, you can see the individual content that was sho
HBMonv2 is tested on Debian v10, v11, v12 & v13
**Note for Debian 12+/Ubuntu 23.04+**: The install.sh script has been updated to handle
PEP 668 externally-managed-environment restrictions using the --break-system-packages flag.
This version of HBMonv2 requires a web server like apache2, lighttpd and
php support running on the server.

View File

@ -3,5 +3,5 @@
# Install the required support programs
apt-get update
apt-get install python3 python3-pip python3-dev libffi-dev libssl-dev cargo sed -y
pip3 install --upgrade setuptools wheel
pip3 install -r requirements.txt
pip3 install --upgrade setuptools wheel --break-system-packages
pip3 install -r requirements.txt --break-system-packages