Skip to content

Commit fd20a4c

Browse files
authored
Upgrade python to 3.11 (#98)
chore: Update python to 3.11 in preparation of UBI9 upgrade. #### Motivation #### Modifications #### Result Signed-off-by: Spolti <[email protected]>
1 parent 729d296 commit fd20a4c

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
@@ -24,11 +24,12 @@ USER root
2424
ENV HOME=/root
2525

2626
# Install build and dev tools
27-
# NOTE: Require python38 to install pre-commit
27+
# NOTE: Require python311 to install pre-commit
2828
RUN --mount=type=cache,target=/root/.cache/dnf:rw \
2929
dnf install --setopt=cachedir=/root/.cache/dnf -y --nodocs \
3030
nodejs \
31-
python38 \
31+
python3.11 \
32+
python3.11-pip \
3233
&& ln -sf /usr/bin/python3 /usr/bin/python \
3334
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
3435
&& true
@@ -149,8 +150,9 @@ RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
149150
microdnf install --setopt=cachedir=/root/.cache/microdnf \
150151
gcc \
151152
gcc-c++ \
152-
python38-devel \
153-
python38 \
153+
python3.11-devel \
154+
python3.11 \
155+
python3.11-pip \
154156
&& ln -sf /usr/bin/python3 /usr/bin/python \
155157
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
156158
&& 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)