Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remoting of V2 Python test runnner not being able to discover the Python interpreter #7844


None yet
2 participants
Copy link

commented Jun 3, 2019


Separately from the interpreter PEX uses to run Pytest and to resolve requirements, we must also have an interpreter to run PEX itself. This might be the same interpreter used by Pytest, but need not be, so long as it is Python 2.7 or 3.4+.

Currently, we use sys.executable to determine this interpreter. This works when running locally, but fails when remoting because sys.executable is an absolute path, such as '/Users/eric/DocsLocal/code/projects/pants/build-support/pants_dev_deps.py36.venv/bin/python'.


Use a generic python bin name.


Local execution still works as expected, including choosing a Python 2 vs. Python 3 interpreter via --python-setup-interpreter-constraints.

While remoting still fails due to other issues, this issue no longer causes an error.

@Eric-Arellano Eric-Arellano requested review from stuhood and illicitonion Jun 3, 2019

@Eric-Arellano Eric-Arellano changed the title Fix remoting of V2 Python tasks not being able to discover the Python interpreter Fix remoting of V2 Python test runnner not being able to discover the Python interpreter Jun 4, 2019


stuhood approved these changes Jun 4, 2019

Copy link

left a comment


@Eric-Arellano Eric-Arellano merged commit 5f1a553 into pantsbuild:master Jun 4, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@Eric-Arellano Eric-Arellano deleted the Eric-Arellano:remoting-fix-python-bin-not-discoverable branch Jun 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.