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 — tools: fix Python 3 syntax error in mac_tool.py by cclauss · Pull Request #30146 · nodejs/node

Conversation

@cclauss

@cclauss cclauss commented Oct 27, 2019

Copy link
Copy Markdown
Contributor

Discovered at #30129 (comment)
Confirmed in #30143

  File "./gyp-mac-tool", line 673
    max_value_length = len(max(filelist.items(), key=lambda (k,v):len(v))[1])
                                                            ^
SyntaxError: invalid syntax

https://portingguide.readthedocs.io/en/latest/syntax.html#tuple-unpacking-in-parameter-lists

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

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

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@cclauss
tools: fix Python 3 syntax error in mac_tool.py
6e79f5b
@cclauss
cclauss requested review from Trott, bnoordhuis, codebytere, gengjiawen, richardlau, rvagg and sam-github October 27, 2019 13:43
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. tools Issues and PRs related to the tools directory. labels Oct 27, 2019
@cclauss cclauss added the python PRs and issues that require attention from people who are familiar with Python. label Oct 27, 2019
bnoordhuis
bnoordhuis reviewed Oct 27, 2019
View reviewed changes

@bnoordhuis bnoordhuis 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.

You're making several changes. Can you split them into separate commits?

Sorry, something went wrong.

Uh oh!

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

All reactions
@cclauss
cclauss requested a review from targos October 27, 2019 13:48
@chrmoritz

chrmoritz commented Oct 27, 2019

Copy link
Copy Markdown

I think this would still need a backport of nodejs/node-gyp@a48f09b#diff-a486ea7ed25fd07c6c5a3aee31ed8308 to make it fully compatible with Python 3.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cclauss

cclauss commented Oct 27, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

@chrmoritz nodejs/node-gyp#1937 contains those changes and was already merged.

You need to wait on the second gyp round trip which is blocked until nodejs/node-gyp#1935 lands and then is picked up by npm/cli and then reimported into nodejs/node /tools.

Vendoring in dependencies is awesome. NOT!!

chrmoritz reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

This was referenced Oct 27, 2019
./configure fails after Python version default changed #30129
Closed
build: ongoing list of actions for Python 3 compatibility #25789
Closed
gengjiawen
gengjiawen approved these changes Oct 29, 2019
View reviewed changes
codebytere
codebytere approved these changes Oct 29, 2019
View reviewed changes
devnexen
devnexen approved these changes Oct 29, 2019
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Oct 31, 2019

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/26263/

All reactions

Sorry, something went wrong.

Uh oh!

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

@nodejs-github-bot

nodejs-github-bot commented Nov 1, 2019

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/26272/

All reactions

Sorry, something went wrong.

Uh oh!

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

@nodejs-github-bot

nodejs-github-bot commented Nov 1, 2019

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/26273/

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 Nov 1, 2019
@cclauss
tools: fix Python 3 syntax error in mac_tool.py
9529c66
PR-URL: #30146
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: David Carlier <[email protected]>
@cclauss

cclauss commented Nov 1, 2019

Copy link
Copy Markdown
Contributor Author

Landed in 9529c66

All reactions

Sorry, something went wrong.

Uh oh!

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

@cclauss cclauss closed this Nov 1, 2019
@cclauss
cclauss deleted the fix-tools-mac_tool.py branch November 1, 2019 08:04
targos pushed a commit that referenced this pull request Nov 5, 2019
@cclauss @targos
tools: fix Python 3 syntax error in mac_tool.py
348ec69
PR-URL: #30146
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: David Carlier <[email protected]>
@targos targos mentioned this pull request Nov 5, 2019
v13.1.0 release proposal #30262
Merged
targos pushed a commit that referenced this pull request Nov 8, 2019
@cclauss @targos
tools: fix Python 3 syntax error in mac_tool.py
b2e0f46
PR-URL: #30146
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: David Carlier <[email protected]>
targos pushed a commit that referenced this pull request Nov 10, 2019
@cclauss @targos
tools: fix Python 3 syntax error in mac_tool.py
502b1e1
PR-URL: #30146
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: David Carlier <[email protected]>
targos pushed a commit that referenced this pull request Nov 10, 2019
@cclauss @targos
tools: fix Python 3 syntax error in mac_tool.py
922f8d7
PR-URL: #30146
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: David Carlier <[email protected]>
@targos targos mentioned this pull request Nov 10, 2019
v12.13.1 release proposal #30352
Merged
targos pushed a commit that referenced this pull request Nov 11, 2019
@cclauss @targos
tools: fix Python 3 syntax error in mac_tool.py
b654673
PR-URL: #30146
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bnoordhuis bnoordhuis bnoordhuis left review comments
@codebytere codebytere codebytere approved these changes
@gengjiawen gengjiawen gengjiawen approved these changes
@sam-github sam-github Awaiting requested review from sam-github
@rvagg rvagg Awaiting requested review from rvagg
@Trott Trott Awaiting requested review from Trott
@richardlau richardlau Awaiting requested review from richardlau
@targos targos Awaiting requested review from targos
+1 more reviewer
@devnexen devnexen devnexen approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. python PRs and issues that require attention from people who are familiar with Python. tools Issues and PRs related to the tools directory.

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.

7 participants

@cclauss @chrmoritz @nodejs-github-bot @bnoordhuis @codebytere @gengjiawen @devnexen
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.