Skip to content

Commit b7beb7b

Browse files
authored
[RHOAIENG-19884] - Upgrade python to 3.11 (opendatahub-io#98) (opendatahub-io#87)
chore: Update python to 3.11 in preparation of UBI9 upgrade. Cherry-picks kserve#98 Signed-off-by: Spolti <[email protected]>
1 parent cfb0866 commit b7beb7b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ USER root
2525
ENV HOME=/root
2626

2727
# Install build and dev tools
28-
# NOTE: Require python38 to install pre-commit
28+
# NOTE: Require python311 to install pre-commit
2929
RUN --mount=type=cache,target=/root/.cache/dnf:rw \
3030
dnf install --setopt=cachedir=/root/.cache/dnf -y --nodocs \
3131
nodejs \
32-
python38 \
32+
python3.11 \
33+
python3.11-pip \
3334
&& ln -sf /usr/bin/python3 /usr/bin/python \
3435
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
3536
&& true
@@ -158,8 +159,9 @@ RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
158159
microdnf install --setopt=cachedir=/root/.cache/microdnf --setopt=ubi-8-appstream-rpms.module_hotfixes=1 \
159160
gcc \
160161
gcc-c++ \
161-
python38-devel \
162-
python38 \
162+
python3.11-devel \
163+
python3.11 \
164+
python3.11-pip \
163165
&& ln -sf /usr/bin/python3 /usr/bin/python \
164166
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
165167
&& true

model-mesh-triton-adapter/scripts/tf_pb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
import os
1516
import sys
1617
import time

0 commit comments

Comments
 (0)