Skip to content
Permalink
Browse files

Configure PEX_PYTHON on linux UCS2

It looks like ./pants binary now completely builds the PEX with 2.7.15 / UCS2! But then when trying to run `./pants.pex -V`, it resolves the runtime interpreter to 2.7.13 :/

I'm not sure how the runtime interpreter selection is supposed to work, but there is an env var PEX_PYTHON that allows passing a path to the value you always want to use. So, we use this for now.
  • Loading branch information...
Eric-Arellano committed Feb 27, 2019
1 parent 3bf2d28 commit 373ffeeb34cb5c99cfe92ab3e47db9b803df4cc7
Showing with 1 addition and 0 deletions.
  1. +1 −0 build-support/docker/travis_ci_py27_ucs2/Dockerfile
@@ -23,6 +23,7 @@ RUN /usr/bin/scl enable devtoolset-7 -- bash -c '\
&& ${PYENV_ROOT}/bin/pyenv global ${PYTHON_2_VERSION}'
ENV PATH "${PYENV_ROOT}/shims:${PATH}"
ENV PY "${PYENV_ROOT}/shims/python2.7"
ENV PEX_PYTHON "${PYENV_ROOT}/shims/python2.7"

# Setup mount points for the travis ci user & workdir.
VOLUME /travis/home

0 comments on commit 373ffee

Please sign in to comment.
You can’t perform that action at this time.