Skip to content

Conversation

@cclauss
Copy link
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

@nodejs-github-botnodejs-github-bot added build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory. labels Oct 27, 2019
@cclausscclauss added the python PRs and issues that require attention from people who are familiar with Python. label Oct 27, 2019
Copy link
Member

@bnoordhuisbnoordhuis left a 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?

@cclausscclauss requested a review from targosOctober 27, 2019 13:48
@chrmoritz
Copy link

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

@cclauss
Copy link
ContributorAuthor

cclauss commented Oct 27, 2019

@chrmoritznodejs/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!!

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

cclauss added a commit that referenced this pull request Nov 1, 2019
PR-URL: #30146 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: David Carlier <[email protected]>
@cclauss
Copy link
ContributorAuthor

Landed in 9529c66

@cclausscclauss closed this Nov 1, 2019
@cclausscclauss 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
PR-URL: #30146 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: David Carlier <[email protected]>
@targostargos mentioned this pull request Nov 5, 2019
targos pushed a commit that referenced this pull request Nov 8, 2019
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
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
PR-URL: #30146 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: David Carlier <[email protected]>
@targostargos mentioned this pull request Nov 10, 2019
targos pushed a commit that referenced this pull request Nov 11, 2019
PR-URL: #30146 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: David Carlier <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.pythonPRs and issues that require attention from people who are familiar with Python.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@cclauss@chrmoritz@nodejs-github-bot@bnoordhuis@codebytere@gengjiawen@devnexen