-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Python 3 #21821
Comments
We'd need gyp to support Python 3 first. See https://bugs.chromium.org/p/gyp/issues/detail?id=36 |
Let's be realistic, GYP will never support Python 3. We should instead move towards a different build system. |
@seishun like gn |
Possibly relevant discussion here: #21410 |
I just want to drop this here... |
There has been some major progress on this. |
I have a better idea: let's stop using Python to build native modules for Node.js. It's kind of a shame that we have to install Python to do this, as if Node.js was incapable of doing it at all. GYP was crafted by Google to fit their needs at the moment, and it's declining ever since. Currently it's close to impossible to build native Node.js modules on non-latin windows, because of Python 2 lack of proper support for Unicode and GYP being built on top of it. The way more popular and stable solution is cmake. Consider using it, please. |
Hello @polkovnikov-ph and thank you for your comment. For the record, we don't just use python for scaffolding native-addons, we actually use it as node-core's tooling runtime (see For native-addons (via
We've recently forked GYP, and I have plans of freshening it up (and maybe incrementally improve it). First item on the list is python3 support, and we're almost there. as for:
There are workarounds (discussed in #12786) and being compatible with python3 should resolve this.
The big hindrance is that currently native addons are scaffolded with |
I'm going to close this as a duplicate of #23659 |
You can close this if it is a duplicate, but I don't know how 4 months old issue can be duplicate of 1 month old issue 🤔. It is OK, but I just want to know what is this 😁. |
I'm sorry @filips123 it's not personal 😇. It's just that the other issue was brought to my attention first. I am working on this FR irregardless of this issue or that. |
@refack It is OK. I'm not sad or something like this 😄. I just wanted to know what was this 😁. |
Add support for building with Python 3.
Python 2 is very old and it will not be supported in 2020 anymore (https://pythonclock.org/ and python/devguide#344).
The text was updated successfully, but these errors were encountered: