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

pex_binary: Pass interpreter attribute as --python-shebang #61

Merged
merged 1 commit into from
Jul 22, 2018

Conversation

evanj
Copy link
Contributor

@evanj evanj commented Jan 8, 2018

The pex_binary interpreter attribute is documented as "Path to the
python interpreter the pex should to use in its shebang line."
However, it was not being passed when building the PEX, so it did not
take effect.

It is getting passed as PEX_PYTHON, which changes the interpreter used
for that invocation of a given pex. This may have been a recent
change: pex-tool/pex#53

interpreter_test.py: Add a test that reads the files and verifies
that the interpreter is set correctly.

The pex_binary interpreter attribute is documented as "Path to the
python interpreter the pex should to use in its shebang line."
However, it was not being passed when building the PEX, so it did not
take effect.

It is getting passed as PEX_PYTHON, which changes the interpreter used
for *that invocation* of a given pex. This may have been a recent
change: pex-tool/pex#53

interpreter_test.py: Add a test that reads the files and verifies
    that the interpreter is set correctly.
@c4urself
Copy link

Any reason why this isn't merged in? Just incorporated it a local copy today and works perfectly.

@benley
Copy link
Owner

benley commented Jul 22, 2018

Hrmmm. At some point we probably ought to transition to py_runtime for specifying python interpreters, but this looks like a good thing for now.

@benley benley merged commit 0c5773d into benley:master Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants