Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…7418) ### Problem We will in #7064 start using Pyenv to install Python 2.7 in the base Centos6 image. This will conflict with our Linux UCS2 shard, which currently uses Pyenv to install Python 2.7 with UCS2 instead of the default UCS4. ### Solution Tweak the Dockerfile to avoid any ambiguity with Centos6 image: * Rename the Python version env var to not conflict by marking it as `UCS2`. * Check if `PYENV_ROOT` is already defined. * Check if `PYENV_ROOT` already exists before git cloning to avoid a git failure. The key line is `${PYENV_BIN} global ${PYTHON_27_VERSION_UCS2}`, which will override whatever `${PYENV_ROOT}/shims/python2.7` used to point to.
- Loading branch information