Skip to content

Commit 1d6caa7

Browse files
committed
PIP_BREAK_SYSTEM_PACKAGES-shaped hammer
1 parent 8ed3daf commit 1d6caa7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/container/Dockerfile.base

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,15 @@ git apply </opt/pip/pip-vcs-equivalency.patch
124124
git add -u
125125
git commit -m 'Adds JAX_TOOLBOX_VCS_EQUIVALENCY as a trigger to treat all github VCS installs for a package as equivalent. The spec of the last encountered version will be used'
126126
EOF
127+
# Container architecture currently uses pip to container-globally install using pip
128+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
127129
RUN <<EOF bash -e
128130
PIP_PYZ_DIR=$(mktemp -d)
129131
pushd "${PIP_PYZ_DIR}"
130132
curl -O https://bootstrap.pypa.io/pip/pip.pyz
131133
chmod +x ./pip.pyz
132134
! pip && ! pip3 # there should not already be a pip
133-
python pip.pyz install --break-system-packages --no-cache-dir -e /opt/pip
135+
python pip.pyz install --no-cache-dir -e /opt/pip
134136
popd
135137
rm -rf "${PIP_PYZ_DIR}"
136138
# Make sure that any later attempt to install `python3-pip` will fail
@@ -140,7 +142,7 @@ Package: python3-pip
140142
Pin: release *
141143
Pin-Priority: -1
142144
EOL
143-
pip install --break-system-packages --no-cache-dir pip-tools
145+
pip install --no-cache-dir pip-tools
144146
EOF
145147

146148
###############################################################################

0 commit comments

Comments
 (0)