Skip to content

Commit 00d4f7e

Browse files
committed
Change paths
1 parent 09ea9e2 commit 00d4f7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,10 +1562,8 @@ def change_default_python_version_rhel(version):
15621562
# installed within the container will not be picked up by the python backend stub process pybind
15631563
# bindings. It must instead must be installed via pyenv.
15641564
RUN curl https://pyenv.run | bash
1565-
RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc \\
1566-
&& echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc \\
1567-
&& echo 'eval "$(pyenv init -)"' >> ~/.bashrc \\
1568-
&& source ~/.bashrc
1565+
ENV PATH="/root/.pyenv/bin:$PATH"
1566+
RUN eval "$(pyenv init -)"
15691567
RUN CONFIGURE_OPTS=\"--with-openssl=/usr/lib64\" && pyenv install {} \\
15701568
&& cp /root/.pyenv/versions/{}/lib/libpython3* /usr/lib64/""".format(
15711569
version, version

0 commit comments

Comments
 (0)