Skip to content

Commit b3ecf2e

Browse files
committed
!=
1 parent 56c1dd5 commit b3ecf2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cpu/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN \
3030
python${PYTHON_VERSION} \
3131
python${PYTHON_VERSION}-dev \
3232
$( if [ "${PYTHON_VERSION%%.*}" -eq 3 ] && [ "${PYTHON_VERSION#*.}" -lt 10 ]; then echo "python${PYTHON_VERSION}-distutils"; fi ) \
33-
$( if [ "${PYTHON_VERSION}" -eq "3.12" ]; then echo "python3-pip"; fi ) \
33+
$( if [ "${PYTHON_VERSION}" == "3.12" ]; then echo "python3-pip"; fi ) \
3434
curl \
3535
wget && \
3636
rm -rf /var/lib/apt/lists/* && \
@@ -39,7 +39,7 @@ RUN \
3939
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \
4040
# install python dependencies \
4141
PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
42-
if [ "${PYTHON_VERSION}" -ne "3.12" ]; then \
42+
if [ "${PYTHON_VERSION}" != "3.12" ]; then \
4343
curl $PIP_URL | python ; \
4444
fi
4545

gpu/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN \
3636
python${PYTHON_VERSION} \
3737
python${PYTHON_VERSION}-dev \
3838
$( if [ "${PYTHON_VERSION%%.*}" -eq 3 ] && [ "${PYTHON_VERSION#*.}" -lt 10 ]; then echo "python${PYTHON_VERSION}-distutils"; fi ) \
39-
$( if [ "${PYTHON_VERSION}" -eq "3.12" ]; then echo "python3-pip"; fi ) \
39+
$( if [ "${PYTHON_VERSION}" == "3.12" ]; then echo "python3-pip"; fi ) \
4040
curl \
4141
wget && \
4242
rm -rf /var/lib/apt/lists/* && \
@@ -45,7 +45,7 @@ RUN \
4545
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \
4646
# install python dependencies
4747
PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
48-
if [ "${PYTHON_VERSION}" -ne "3.12" ]; then \
48+
if [ "${PYTHON_VERSION}" != "3.12" ]; then \
4949
curl $PIP_URL | python ; \
5050
fi
5151

0 commit comments

Comments
 (0)