node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

Support for Python 3

Open mcandre opened this issue 13 years ago • 60 comments

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.

mcandre avatar Feb 12 '13 20:02 mcandre

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!).

TooTallNate avatar Feb 12 '13 20:02 TooTallNate

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?

CamiloMM avatar Jul 26 '14 22:07 CamiloMM

I've started a petition, you can sign it there: https://www.change.org/petitions/google-inc-upgrade-gyp-to-support-phyton-3

unbornchikken avatar Aug 14 '14 19:08 unbornchikken

@unbornchikken Er, you may want to correct a typo in the petition: "Phyton 3".

mcandre avatar Aug 14 '14 21:08 mcandre

@unbornchikken Is everything a petition nowadays...? Nevermind, signed. watt-can-you-do-sign-the-petition

@mcandre Well, that's because he's phyton for it.

CamiloMM avatar Aug 14 '14 21:08 CamiloMM

typo fixed. never start a petition after midnight.

meme idea: i do petitions instead of PRs 😊

unbornchikken avatar Aug 15 '14 05:08 unbornchikken

I appreciate the sentiment, but I believe Google is going to be focusing their time on gn these days. They have plans to phase out gyp before the end of 2014. I'm looking for some time/motivation to write node-gn :smile:

TooTallNate avatar Aug 15 '14 05:08 TooTallNate

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.

unbornchikken avatar Aug 15 '14 05:08 unbornchikken

For motivation: start a repo, and put a Donate button in the readme. You will be suprised. ;)

unbornchikken avatar Aug 15 '14 06:08 unbornchikken

@TooTallNate Then you'll just have to make massive pull requests for each package out there that uses node-gyp. No biggie :)

(On all honesty, I'm rooting for something better to come along).

CamiloMM avatar Aug 15 '14 14:08 CamiloMM

coz da petition didnt help: https://github.com/unbornchikken/cmake-js

unbornchikken avatar May 04 '15 04:05 unbornchikken

Please try to use env python2. The current version of node-gyp completely breaks on distributions that have their default Python binary set to Python 3.

untitaker avatar Jul 16 '15 15:07 untitaker

Looks like they are working on it.

https://codereview.chromium.org/1454433002

demurgos avatar Nov 29 '15 18:11 demurgos

Is there any reason why node-gyp can't autodetect the location of python2 and use that to run gyp?

bendavis78 avatar May 09 '16 17:05 bendavis78

@bendavis78 It does, it looks for python2 first before falling back to python. On Windows, it also looks in well-known locations and consults the python launcher when available.

bnoordhuis avatar May 09 '16 18:05 bnoordhuis

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).

npm install node-gyp asked for Python, I installed the current version of Python. Then it complains about python 3.

mikemaccana avatar May 21 '16 17:05 mikemaccana

this is so annoying

stochastic-thread avatar Apr 23 '17 02:04 stochastic-thread

You're all missing the point 😉 The real goal is to remove the dependency on python completely #960

refack avatar Apr 23 '17 03:04 refack

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 [email protected] 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.

CamiloMM avatar Apr 23 '17 09:04 CamiloMM

@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))

maxkoryukov avatar Apr 23 '17 14:04 maxkoryukov