-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Python search should prefer "python2" executable #384
Comments
I agree that this is a bug. Sure, the README points out how to deal with Python3, but really: How hard would it be to fix this? You can’t expect |
+1 |
flying-sheep
added a commit
to flying-sheep/node-gyp
that referenced
this issue
Sep 12, 2014
👍 |
Fixed by #527. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On systems where Python 3 is the default, node-gyp complains about an incorrect Python version, even though Python 2 is often available as
python2
.Per PEP 394:
There are a few distributions that don't provide a
python2
executable. But searching PATH for bothpython2
andpython
(and preferringpython2
) should catch cases where Python 2 is installed but node-gyp selects the wrong executable, while still supporting said distributions that don't ship apython2
.Is this something you guys'd endorse? If so, happy to provide a pull request.
The text was updated successfully, but these errors were encountered: