Skip to content

Commit

Permalink
Configure PEX_PYTHON on linux UCS2
Browse files Browse the repository at this point in the history
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 373ffee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build-support/docker/travis_ci_py27_ucs2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 373ffee

Please sign in to comment.