-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
build.py has "/usr/bin/python2" hard-coded #88
Comments
(also, '/usr/bin/env python' will play more nicely with virtualenvs) |
It looks like this was changed recently in response to another bug report: #60 What are you running that doesn't have python2? |
Since Kivy only supports Python2.7 I think the best solution would be to change that line to: |
I'm on OS X and it's quite rare (as I understand it) to use a "python2" name for Python 2.* Your suggested solution would work. |
Hm, it looks like '/usr/bin/env python2' is correct. |
Yeah, i was sure there was a pep about this, just wasn't able to find it again yesterday. |
I understand about there being a PEP, but that doesn't change there being no "python2" on OS X by default. As I mentioned though, there is a "python2.7" that could be used. |
This is to fix kivy/python-for-android#88 The ideal solution, according to Python PEP 0394, would seem to be '#!/usr/bin/env python2', however that PEP is unfortunately not well-followed by OSX and even Linux distros like Arch and Debian Squeeze. Because of this, and because Kivy currently only supports Python2.7, the more practical solution is '#!/usr/bin/env python2.7'.
There's no such interpreter on my system. There's not even a "python2" anywhere. I believe it's safe to assume "python" is Python 2.x and "python3" is not.
The text was updated successfully, but these errors were encountered: