Skip to content

build,tools: Python3 compatibility and refactoring - #26725

Closed
refack wants to merge 2 commits into
nodejs:masterfrom
refack:refacotr-configure-for-python3
Closed

build,tools: Python3 compatibility and refactoring#26725
refack wants to merge 2 commits into
nodejs:masterfrom
refack:refacotr-configure-for-python3

Conversation

@refack

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Mar 18, 2019
@refackrefack added the python PRs and issues that require attention from people who are familiar with Python. label Mar 18, 2019
@refackrefack added this to the 12.0.0 milestone Mar 18, 2019
@refack

refack commented Mar 18, 2019

Copy link
Copy Markdown
ContributorAuthor

@refackrefack added the wip Issues and PRs that are still a work in progress. label Mar 18, 2019
@refack
refackforce-pushed the refacotr-configure-for-python3 branch 2 times, most recently from b7a3e11 to 36f93f6CompareMarch 18, 2019 01:47
@refackrefack self-assigned this Mar 19, 2019
@refack
refackforce-pushed the refacotr-configure-for-python3 branch 4 times, most recently from 1fcf092 to aa3826aCompareMarch 19, 2019 23:49
@targos

Copy link
Copy Markdown
Member

Ping @nodejs/python

@targostargos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is the new and empty tools/configure_lib/__init__.py necessary?

Comment threadtools/configure_lib/nodedownload.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

URLopener seems unused

@refack

refack commented Mar 22, 2019

Copy link
Copy Markdown
ContributorAuthor

Is the new and empty tools/configure_lib/__init__.py necessary?

It's a python thing (it tells the runtime that that directory is a "package") that enables doing:
https://github.com/nodejs/node/blob/aa3826ae54ee2422ffc38ca1b94e8dea7f09de8c/configure.py#L25
instead of:

node/configure.py

Lines 30 to 32 in 2fa8dc4

# imports in tools/configure.d
sys.path.insert(0, os.path.join('tools', 'configure.d'))
importnodedownload

(which is not cricket)

Comment threadconfigure.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is not necessary for Python 3 compatibility I believe. Can you explain why this is introduced?

Comment threadconfigure.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: There are a few lines which cross the 80 characters limit.

@thefourtheye

Copy link
Copy Markdown
Contributor

I feel that the refactoring can be done in a separate PR. Not introducing any new additional code would be easy for us to debug problems.

@TrottTrott removed this from the 12.0.0 milestone Apr 29, 2019
@refackrefack removed the wip Issues and PRs that are still a work in progress. label May 6, 2019
@refack
refackforce-pushed the refacotr-configure-for-python3 branch from aa3826a to 9a8292eCompareMay 6, 2019 11:59
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@targostargos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with nits fixed and green CI

@targos

Copy link
Copy Markdown
Member

/cc @cclauss

@cclauss

Copy link
Copy Markdown
Contributor

My vote would be that we close this. We have touched these files in the interim and most of these changes have been done. Is there anything remaining that we should consider?

@TrottTrott closed this Nov 3, 2019
Trott pushed a commit to RaisinTen/node that referenced this pull request Nov 12, 2020
Refs: nodejs#26725Fixes: nodejs#29813
Refs: nodejs#29814
PR-URL: nodejs#35755
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
codebytere pushed a commit that referenced this pull request Nov 22, 2020
Refs: #26725Fixes: #29813
Refs: #29814
PR-URL: #35755
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@refack@nodejs-github-bot@targos@thefourtheye@cclauss@Trott