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

Allow pex to be invoked using runpy (python -m pex). #637

Merged
merged 2 commits into from
Jan 29, 2019
Merged

Allow pex to be invoked using runpy (python -m pex). #637

merged 2 commits into from
Jan 29, 2019

Conversation

jaraco
Copy link
Contributor

@jaraco jaraco commented Dec 20, 2018

Today I went to run pex using pip-run, but found that running python -m pex results in the usual error:

python3: No module named pex.__main__; 'pex' is a package and cannot be directly executed

Of course, one can use python -m pex.bin.pex but that's unintuitive. How about let the pex package also supply the pex command?

jaraco and others added 2 commits December 20, 2018 09:51
@jsirois
Copy link
Member

jsirois commented Jan 29, 2019

Thanks @jaraco and please accept my apologies for the significant delay looking at this. I've fixed up the isort failure and if this goes green I'll merge.

@jsirois jsirois mentioned this pull request Jan 29, 2019
3 tasks
@jsirois jsirois merged commit 302f988 into pex-tool:master Jan 29, 2019
@jaraco jaraco deleted the feature/runpy-invoke branch February 3, 2019 16:16
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.

2 participants