mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2026-01-09 08:59:17 -05:00
Fix PEP 668 externally-managed-environment installation errors
Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com>
This commit is contained in:
parent
fc1cf517a8
commit
197b7ebe35
@ -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
|
||||
|
||||
|
||||
@ -10,6 +10,11 @@ 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. If you encounter any pip installation
|
||||
errors, the script automatically uses the --break-system-packages flag. For a cleaner
|
||||
installation, consider using a Python virtual environment.
|
||||
|
||||
This version of HBMonv2 requires a web server like apache2, lighttpd and
|
||||
php support running on the server.
|
||||
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
|
||||
# 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
|
||||
apt-get install python3 python3-pip python3-dev python3-venv libffi-dev libssl-dev cargo sed -y
|
||||
pip3 install --upgrade setuptools wheel --break-system-packages
|
||||
pip3 install -r requirements.txt --break-system-packages
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user