GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: Declare that node-gyp is Python 3 compatible by cclauss · Pull Request #1811 · nodejs/node-gyp

Conversation

@cclauss

@cclauss cclauss commented Jul 7, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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 test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

Declare that node-gyp is Python 3 compatible as discussed at #1337 (comment)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

styfle reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
joaocgreis
joaocgreis requested changes Jul 7, 2019
View reviewed changes

@joaocgreis joaocgreis left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking this for now, node-gyp only uses Python 2:

node-gyp/lib/configure.js

Line 365 in 7e81270

semverRange: '>=2.6.0 <3.0.0',
, thus tests are not running in Python 3. I can open a PR to remove that restriction from configure.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cclauss

cclauss commented Jul 7, 2019

Copy link
Copy Markdown
Contributor Author

2.7 should be the lower limit.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss cclauss mentioned this pull request Jul 7, 2019
build: set Python semverRange: '>=2.7.0 <3.8.0' #1813
Closed
1 of 4 tasks
@joaocgreis

joaocgreis commented Jul 8, 2019

Copy link
Copy Markdown
Member

2.7 should be the lower limit.

@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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss

cclauss commented Jul 8, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

neilsh and liamrathke reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joaocgreis

joaocgreis commented Jul 8, 2019

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss

cclauss commented Jul 8, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

Codex-, Croydon, liamrathke, and jmiller-pping reacted with thumbs up emoji
All reactions
  • 👍 4 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rvagg
rvagg approved these changes Jul 9, 2019
View reviewed changes

@rvagg rvagg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@richardlau

richardlau commented Jul 9, 2019

Copy link
Copy Markdown
Member

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 can get behind dropping support for Python 2.6 at the same time as dropping support for Node.js 6 in a a node-gyp semver major. Declaring Python 3 support (assuming it does actually work) would be a positive change for the semver major.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cclauss added a commit that referenced this pull request Jul 11, 2019
@cclauss
build: raise the minimum Python version from 2.6 to 2.7
681f349
As discussed in #1811
@cclauss cclauss mentioned this pull request Jul 11, 2019
build: raise the minimum Python version from 2.6 to 2.7 #1818
Closed
1 of 4 tasks
@cclauss cclauss added the Python label Jul 11, 2019
rvagg pushed a commit that referenced this pull request Jul 15, 2019
@cclauss @rvagg
lib: raise the minimum Python version from 2.6 to 2.7
9db85ed
As discussed in #1811

PR-URL: #1818
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: João Reis <[email protected]>
@rvagg rvagg mentioned this pull request Jul 16, 2019
v5.0.3 proposal #1829
Closed
rvagg pushed a commit that referenced this pull request Jul 17, 2019
@cclauss @rvagg
lib: raise the minimum Python version from 2.6 to 2.7
c6e3b65
As discussed in #1811

PR-URL: #1818
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: João Reis <[email protected]>
@rvagg
rvagg force-pushed the master branch from bacf53d to 4ef83ed Compare July 22, 2019 03:16
@rvagg

rvagg commented Sep 25, 2019

Copy link
Copy Markdown
Member

@cclauss @joaocgreis can you update us on the status of this? can we merge it?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss

cclauss commented Sep 25, 2019

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joaocgreis

joaocgreis commented Sep 25, 2019

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

joaocgreis
joaocgreis approved these changes Sep 30, 2019
View reviewed changes
@cclauss
doc: Declare that node-gyp is Python 3 compatible
779483d
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.
@cclauss
cclauss force-pushed the Declare-Python-3-compatibility branch from e979d59 to 779483d Compare September 30, 2019 07:51
@cclauss cclauss mentioned this pull request Sep 30, 2019
Release proposal: v6.0.0 #1892
Closed
@rvagg

rvagg commented Sep 30, 2019

Copy link
Copy Markdown
Member

is this semver-major? would it be appropriate to put on 5.x?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rvagg pushed a commit that referenced this pull request Sep 30, 2019
@cclauss @rvagg
doc: Declare that node-gyp is Python 3 compatible
c763ca1
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 <[email protected]>
@rvagg

rvagg commented Sep 30, 2019

Copy link
Copy Markdown
Member

landed in c763ca1 but if this shouldn't be in 5.x, please label it semver-major so it only goes into 6.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg rvagg closed this Sep 30, 2019
@rvagg
rvagg deleted the Declare-Python-3-compatibility branch September 30, 2019 11:36
@joaocgreis joaocgreis added the semver-major label Sep 30, 2019
@joaocgreis

joaocgreis commented Sep 30, 2019

Copy link
Copy Markdown
Member

This should NOT go into 5.

This depends on #1844, so this should only go into 6.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg

rvagg commented Oct 1, 2019

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cclauss cclauss mentioned this pull request Oct 2, 2019
build: ongoing list of actions for Python 3 compatibility nodejs/node#25789
Closed
61 of 63 tasks
@rvagg rvagg mentioned this pull request Nov 18, 2019
Release proposal: [email protected] #1972
Closed
@rvagg rvagg mentioned this pull request Feb 3, 2020
[email protected] Release Proposal #2012
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@joaocgreis joaocgreis joaocgreis approved these changes
@rvagg rvagg rvagg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Python semver-major

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@cclauss @joaocgreis @richardlau @rvagg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.