-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 #193
Comments
Ditto on #194: this is an issue with upstream gyp, and in fact they are aware of the problem: http://code.google.com/p/gyp/issues/detail?id=36 Go make some noise in that issue if you want to see Python 3 supported (or better yet, send the patch!). |
As someone who doesn't do Python: why is there still so much incompatibility? Python 3.0 was released on 2008 and has a lot of advantages over 2.x, so why does 2.x still hold so much predominance? |
I've started a petition, you can sign it there: https://www.change.org/petitions/google-inc-upgrade-gyp-to-support-phyton-3 |
@unbornchikken Er, you may want to correct a typo in the petition: "Phyton 3". |
@unbornchikken Is everything a petition nowadays...? Nevermind, signed. @mcandre Well, that's because he's phyton for it. |
typo fixed. never start a petition after midnight. meme idea: i do petitions instead of PRs 😊 |
I appreciate the sentiment, but I believe Google is going to be focusing their time on |
hm, should i start a new petition? 😊 i think it's maximum a couple days of work to update gyp scripts to p3, it can be done if they care. the problem is that v8 guys are thinking in v8 even today, but there is a mutch larger dependent platform to care, but they don't. i can understand, they got dollars for v8 not for node. maybe online activity like petitions will wake up their bosses, and give guys some days to patch shit up. |
For motivation: start a repo, and put a Donate button in the readme. You will be suprised. ;) |
@TooTallNate Then you'll just have to make massive pull requests for each package out there that uses (On all honesty, I'm rooting for something better to come along). |
coz da petition didnt help: https://github.com/unbornchikken/cmake-js |
Please try to use |
Looks like they are working on it. |
Is there any reason why node-gyp can't autodetect the location of python2 and use that to run gyp? |
@bendavis78 It does, it looks for |
This just hit me too trying node on Windows for the first time (first time on Windows that is, have been using node since 0.6).
|
this is so annoying |
You're all missing the point 😉 |
Imagine a Perl package that depends on VB.NET code. It's bonkers how it got this far.On Apr 23, 2017 00:06, Refael Ackermann <notifications@github.com> wrote:You're all missing the point 😉
The real goal is to remove the dependency on python completely #960
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
@refack, we all missing the point? Lets look at things globally: #960 is about coding for tiny PYTHON interpreter in JAVASCRIPT ;)
Of course, Node.JS is not the same as javascript. Hmm, sign the petition is not a bad idea though)) |
With the rise of WASM do we really need to support native libraries in Node projects any longer |
@mcandre I'm no WAsm expert but, as I understand it, WebAssembly modules are sandboxed in a way that many existing native modules could not function within. 🔒 Furthermore, there is a large collection of existing native modules that would either need to be converted or else cease to be officially supported. 😬 |
It's 2019-5-19, still Python 2. |
Wow, It's been six years. |
Why not just ditch Python? Python sucks anyway. Let us ditch Python 2 and Python 3. |
haha :( 😂 😆 People still use python2... :( python2 should have been removed from universe earlier so we don't have to face this problem :/ |
What is the block here? There's a tool for AUTOMATED migration to Python 3: https://docs.python.org/2/library/2to3.html |
@devinbost Unfortunately, that tool only migrates some parts of the code. Some bigger breaking changes then still need to be fixed manually. |
Hold your horses! It seems like something is afoot: 66ad305 |
@kumarharsh Now way 🤞! |
The Python 3 tests are currently run in allow_failures mode: https://travis-ci.com/nodejs/node-gyp If we can get those test to be green and drop the allow_failures mode then we can 🚀 🎉 🍾 Please review any Python pull requests and provide fixes for the failing tests if you can. |
Finally after 6 years :) |
and not a moment too soon. Warning: Python 2 will be retired on 1st January 2020: https://pythonclock.org/ |
Time to shed Python 2 by UK The National Cyber Security Centre |
kill py2 |
2024, still here. |
The |
A notable alternative is to use Go code rather than Python. Go dramatically reduces the need for native C/C++ code in the first place. And Go has builtin support for FFI via cgo. Don't use interpreted programming languages that blow up in production on variable name typos at runtime in 2024. |
Please add support for Python 3.
Some tools require Python 2, some require Python 3, and this makes it really hard to setup a build environment. Better to support both when possible.
The text was updated successfully, but these errors were encountered: