Uh oh!
There was an error while loading. Please reload this page.
doc: Declare that node-gyp is Python 3 compatible - #1811
Conversation
joaocgreis
left a comment
There was a problem hiding this comment.
Blocking this for now, node-gyp only uses Python 2:
Line 365 in 7e81270
cclauss
commented
Jul 7, 2019
2.7 should be the lower limit. |
joaocgreis
commented
Jul 8, 2019
@cclauss is there any node-gyp reason for that? Last time I checked (some time ago) it worked. I understand Python 2.6 is not recommendable at all, but is there anything on the node-gyp side forcing us to break users who can't upgrade? |
After 5 years with no security patches, Python 2.6 represents a rather sizable attack surface area. Also the Python 3 compatibility changes that we have made across many files have not been tested on Python 2.6 and we should not be encouraging our users to run these untested changes on unsupported configurations in production. "Stop using Python 2.6", written by a Python core team member 4+ years ago, goes into more detail. |
joaocgreis
commented
Jul 8, 2019
I don't think accepting it is the same as encouraging users to use it. Perhaps we should be clear in the docs that we only test on the latest version, others may or may not work. I still think that we don't have a reason to break 2.6, but I don't really have a strong opinion so I'll defer to other @nodejs/node-gyp members. |
I have a strong opinion that we should not be encouraging/enabling our users to expose themselves to security risks. Also, we are tied to really out-of-date technologies and this long overdue backward compatibility promise is stunting our modernization. |
rvagg
left a comment
There was a problem hiding this comment.
Seems good to me. Great in fact.
Our pace of progress doesn't have to be dictated by nodejs/node so I'm comfortable with moving forward even if we struggle a bit in nodejs/node.
richardlau
commented
Jul 9, 2019
I can get behind dropping support for Python 2.6 at the same time as dropping support for Node.js 6 in a a |
rvagg
commented
Sep 25, 2019
@cclauss@joaocgreis can you update us on the status of this? can we merge it? |
cclauss
commented
Sep 25, 2019
I think we are ready for this PR to land. Of the PRs with a Python label the only one that worries me is the macOS bit of #1844 but that is semver-major. |
joaocgreis
commented
Sep 25, 2019
Can we "declare that node-gyp is Python 3 compatible" if it's broken on macOS? I can't work on macOS support myself at the moment, so I won't block this if you think it makes sense. Node-gyp would be broken by default on macOS. |
NOTE: node-gyp is compatible with both Python 2.7 and 3.7 but Node.js itself is not yet compatible with Python 3. Careful review please because I am not a Windows user.
e979d59 to
779483dComparervagg
commented
Sep 30, 2019
is this semver-major? would it be appropriate to put on 5.x? |
NOTE: node-gyp is compatible with both Python 2.7 and 3.7 but Node.js itself is not yet compatible with Python 3. PR-URL: #1811 Reviewed-By: João Reis <reis@janeasystems.com>
rvagg
commented
Sep 30, 2019
landed in c763ca1 but if this shouldn't be in 5.x, please label it semver-major so it only goes into 6. |
joaocgreis
commented
Sep 30, 2019
This should NOT go into 5. This depends on #1844, so this should only go into 6. |
rvagg
commented
Oct 1, 2019
Maybe we should clarify in the readme that v5 is different to >v5 in this respect? A lot of people are going to be landing at this README regardless of their version. |
Edit: Blocked because Travis CI tests on Python 3 are failing...
NOTE: node-gyp is compatible with both Python 2.7 and 3.7 but Node.js itself is not yet compatible with Python 3. See #1337 (comment)
Careful review please because I am not a Windows user.
Checklist
npm install && npm testpassesDescription of change
Declare that node-gyp is Python 3 compatible as discussed at #1337 (comment)