|
78 | 78 | "2024.0.0", # Standalone OpenVINO |
79 | 79 | "3.2.6", # DCGM version |
80 | 80 | "0.5.3.post1", # vLLM version |
81 | | - "3.12.1", # RHEL Python version |
| 81 | + "3.12.3", # RHEL Python version |
82 | 82 | ) |
83 | 83 | } |
84 | 84 |
|
@@ -1541,32 +1541,31 @@ def add_cpu_libs_to_linux_dockerfile(backends, target_machine): |
1541 | 1541 |
|
1542 | 1542 |
|
1543 | 1543 | def change_default_python_version_rhel(version): |
1544 | | - # Example version 3.12.1 --> 3.12 |
1545 | | - major_minor_version = ".".join(version.split(".")[:2]) |
1546 | 1544 | df = """ |
| 1545 | +# The python library version available for install via 'yum install python3.X-devel' does not |
| 1546 | +# match the version of python inside the RHEL base container. This means that python packages |
| 1547 | +# installed within the container will not be picked up by the python backend stub process pybind |
| 1548 | +# bindings. It must instead must be installed via pyenv. |
| 1549 | +ENV PYENV_ROOT=/tmp/pyenv_build |
| 1550 | +RUN curl https://pyenv.run | bash |
| 1551 | +ENV PATH="${{PYENV_ROOT}}/bin:$PATH" |
| 1552 | +RUN eval "$(pyenv init -)" |
| 1553 | +RUN CONFIGURE_OPTS=\"--with-openssl=/usr/lib64\" && pyenv install {} \\ |
| 1554 | + && cp ${{PYENV_ROOT}}/versions/{}/lib/libpython3* /usr/lib64/""".format( |
| 1555 | + version, version |
| 1556 | + ) |
| 1557 | + df += """ |
1547 | 1558 | # RHEL image has several python versions. It's important |
1548 | 1559 | # to set the correct version, otherwise, packages that are |
1549 | 1560 | # pip installed will not be found during testing. |
1550 | 1561 | ENV PYVER {} |
1551 | 1562 | ENV PYTHONPATH /opt/python/v |
1552 | | -RUN ln -sf /opt/python/cp${{PYVER/./}}* ${{PYTHONPATH}} |
| 1563 | +RUN ln -sf ${{PYENV_ROOT}}/versions/${{PYVER}}* ${{PYTHONPATH}} |
1553 | 1564 | ENV PYBIN ${{PYTHONPATH}}/bin |
1554 | 1565 | ENV PYTHON_BIN_PATH ${{PYBIN}}/python${{PYVER}} |
1555 | 1566 | ENV PATH ${{PYBIN}}:${{PATH}} |
1556 | 1567 | """.format( |
1557 | | - major_minor_version |
1558 | | - ) |
1559 | | - df += """ |
1560 | | -# The python library version available for install via 'yum install python3.X-devel' does not |
1561 | | -# match the version of python inside the RHEL base container. This means that python packages |
1562 | | -# installed within the container will not be picked up by the python backend stub process pybind |
1563 | | -# bindings. It must instead must be installed via pyenv. |
1564 | | -RUN curl https://pyenv.run | bash |
1565 | | -ENV PATH="/root/.pyenv/bin:$PATH" |
1566 | | -RUN eval "$(pyenv init -)" |
1567 | | -RUN CONFIGURE_OPTS=\"--with-openssl=/usr/lib64\" && pyenv install {} \\ |
1568 | | - && cp /root/.pyenv/versions/{}/lib/libpython3* /usr/lib64/""".format( |
1569 | | - version, version |
| 1568 | + version |
1570 | 1569 | ) |
1571 | 1570 | return df |
1572 | 1571 |
|
|
0 commit comments