Skip to content

Commit 26dfe6e

Browse files
committed
Use python3.10
1 parent 904885f commit 26dfe6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,16 @@ def create_dockerfile_buildbase_rhel(ddir, dockerfile_name, argmap):
918918
919919
ARG TRITON_VERSION
920920
ARG TRITON_CONTAINER_VERSION
921+
"""
922+
923+
df += """
924+
# Point to python 3.10 which is what triton expects the default to be
925+
ENV PYVER 3.10
926+
ENV PYTHONPATH /opt/python/v
927+
RUN ln -sf /opt/python/cp${PYVER/./}* ${PYTHONPATH}
928+
ENV PYBIN ${PYTHONPATH}/bin
929+
ENV PYTHON_BIN_PATH ${PYBIN}/python${PYVER}
930+
ENV PATH ${PYBIN}:${PATH}
921931
"""
922932
df += """
923933
# Install docker docker buildx

0 commit comments

Comments
 (0)