forked from platypush/platypush
Updated pip ... --break-system-packages
configuration.
All the latest versions of Alpine, Debian, Ubuntu and Fedora now require `--break-system-packages` when installing packages via `pip` outside of a virtual environment, even if it's within a container.
This commit is contained in:
parent
d20cd4b058
commit
3ccdd4d179
5 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@ ENV DOCKER_CTX=1
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
/install/platypush/install/scripts/alpine/install.sh && \
|
/install/platypush/install/scripts/alpine/install.sh && \
|
||||||
cd /install && pip install -U --no-input --no-cache-dir . && \
|
cd /install && pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
apk cache clean
|
apk cache clean
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ ENV DOCKER_CTX=1
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
/install/platypush/install/scripts/debian/install.sh && \
|
/install/platypush/install/scripts/debian/install.sh && \
|
||||||
cd /install && pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
cd /install && \
|
||||||
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
apt autoremove -y && \
|
apt autoremove -y && \
|
||||||
|
|
|
@ -9,7 +9,8 @@ ENV DOCKER_CTX=1
|
||||||
# Enable the RPM Fusion repository
|
# Enable the RPM Fusion repository
|
||||||
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm && \
|
RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm && \
|
||||||
/install/platypush/install/scripts/fedora/install.sh && \
|
/install/platypush/install/scripts/fedora/install.sh && \
|
||||||
cd /install && pip install -U --no-input --no-cache-dir . && \
|
cd /install && \
|
||||||
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
dnf clean all -y
|
dnf clean all -y
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ ENV DOCKER_CTX=1
|
||||||
|
|
||||||
RUN apt update && \
|
RUN apt update && \
|
||||||
/install/platypush/install/scripts/debian/install.sh && \
|
/install/platypush/install/scripts/debian/install.sh && \
|
||||||
cd /install && pip install -U --no-input --no-cache-dir . && \
|
cd /install && \
|
||||||
|
pip install -U --no-input --no-cache-dir . --break-system-packages && \
|
||||||
rm -rf /install && \
|
rm -rf /install && \
|
||||||
apt autoclean -y && \
|
apt autoclean -y && \
|
||||||
apt autoremove -y && \
|
apt autoremove -y && \
|
||||||
|
|
|
@ -454,11 +454,8 @@ class Dependencies:
|
||||||
through another script.
|
through another script.
|
||||||
"""
|
"""
|
||||||
wants_break_system_packages = not (
|
wants_break_system_packages = not (
|
||||||
# Docker installations shouldn't require --break-system-packages in
|
|
||||||
# pip, except for Debian
|
|
||||||
(self._is_docker and self.base_image != BaseImage.DEBIAN)
|
|
||||||
# --break-system-packages has been introduced in Python 3.10
|
# --break-system-packages has been introduced in Python 3.10
|
||||||
or sys.version_info < (3, 11)
|
sys.version_info < (3, 11)
|
||||||
# If we're in a virtual environment then we don't need
|
# If we're in a virtual environment then we don't need
|
||||||
# --break-system-packages
|
# --break-system-packages
|
||||||
or self._is_venv
|
or self._is_venv
|
||||||
|
|
Loading…
Reference in a new issue