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 — Decode stdout on Python 3 by cclauss · Pull Request #1890 · nodejs/node-gyp

Conversation

@cclauss

@cclauss cclauss commented Sep 25, 2019 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor
Checklist
  • npm install && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

Fixes #1849, #1854, #1861 https://github.com/nodejs/node-gyp/search?q=CLT&type=Issues

Python 2 does not make a distinction between bytes and str but Python 3 does. When we make calls to subprocess.Popen() on Python 3 we should stdout.decode("utf8") before performing string manipulations on it.

This modification also allows Accept Python 3 by default #1844 to pass all Travis CI tests.

Sorry, something went wrong.

Uh oh!

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

All reactions
@cclauss
Decode stdout on Python 3
19398a4
@cclauss
cclauss requested review from bnoordhuis, joaocgreis, rvagg and sam-github September 25, 2019 18:23
sam-github
sam-github approved these changes Sep 25, 2019
View reviewed changes

@sam-github sam-github left a comment

Copy link
Copy Markdown
Contributor

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.

Looks pretty reasonable to me.

Sorry, something went wrong.

Uh oh!

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

All reactions
richardlau
richardlau approved these changes Sep 25, 2019
View reviewed changes
@cclauss cclauss mentioned this pull request Sep 25, 2019
build: ongoing list of actions for Python 3 compatibility nodejs/node#25789
Closed
61 of 63 tasks
@cclauss
fixup: remove Travis CI allow_failures
722a6fb
bnoordhuis
bnoordhuis approved these changes Sep 25, 2019
View reviewed changes
This was referenced Sep 25, 2019
node-gyp Python 3 support nodejs/node-addon-api#445
Closed
Accept Python 3 by default #1844
Closed
rvagg pushed a commit that referenced this pull request Sep 26, 2019
@cclauss @rvagg
gyp: decode stdout on Python 3
d90d9c5
PR-URL: #1890
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
@rvagg

rvagg commented Sep 26, 2019

Copy link
Copy Markdown
Member

landed in d90d9c5

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg rvagg closed this Sep 26, 2019
@rvagg rvagg mentioned this pull request Sep 26, 2019
Release proposal: v6.0.0 #1892
Closed
rvagg pushed a commit that referenced this pull request Sep 26, 2019
@cclauss @rvagg
gyp: decode stdout on Python 3
f753c16
PR-URL: #1890
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
@rvagg rvagg mentioned this pull request Sep 26, 2019
Release proposal: v5.0.4 #1893
Closed
@cclauss
cclauss deleted the decode.stdout-on-Python3 branch September 26, 2019 04:43
This was referenced Sep 26, 2019
more decode stdout on Python 3 #1894
Closed
node-gyp rebuild not working on MacOS Catalina Beta without reinstalling CommandLineTools #1861
Closed
allow double-digit versions in XcodeVersion #1854
Closed
Could not get CLTVersion #1849
Closed
@cclauss cclauss added the Python label Oct 4, 2019
@cclauss cclauss mentioned this pull request Oct 24, 2019
Finish decode stdout on Python 3 #1937
Merged
4 tasks
@richardlau richardlau mentioned this pull request Oct 26, 2019
./configure fails after Python version default changed nodejs/node#30129
Closed
chrmoritz added a commit to chrmoritz/node that referenced this pull request Nov 5, 2019
@chrmoritz @cclauss
tools: port Python 3 compat patch 19398a4 from node-gyp to gyp
c0b9253
original commit: nodejs/node-gyp@19398a4
Refs: nodejs/node-gyp#1890
Co-Authored-By: Christian Clauss <[email protected]>
@cclauss cclauss mentioned this pull request Nov 5, 2019
tools: pull xcode_emulation.py fixes from node-gyp nodejs/node#30272
Closed
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bnoordhuis bnoordhuis bnoordhuis approved these changes
@richardlau richardlau richardlau approved these changes
@joaocgreis joaocgreis Awaiting requested review from joaocgreis
@rvagg rvagg Awaiting requested review from rvagg
+1 more reviewer
@sam-github sam-github sam-github 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

Python

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Could not get CLTVersion

Uh oh!

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

5 participants

@cclauss @rvagg @sam-github @bnoordhuis @richardlau
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.