Node: Re-vendor node/node-gyp --> tools/gyp/

Created on 5 Jul 2019  路  6Comments  路  Source: nodejs/node

As discussed at https://github.com/nodejs/node/pull/28537#issuecomment-508724824, in order to keep advancing towards Python 3 compatibility, we should re-vendor the repo __node/node-gyp__ --> this repo's __tools/gyp/__ directory.

What is the best approach for vendoring in?

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.
Node.js does not yet build on Python 3 and Python 2 EOL is in < 6 months.

Describe the solution you'd like
Please describe the desired behavior.
Node.js builds on Python 3.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.
Going kitesurfing.

Python

Most helpful comment

Perhaps we should be vendoring gyp3 in? https://github.com/nodejs/node/pull/26620 would be an attempt at that.

All 6 comments

I'm not involved in gyp maintenance, so no comment on whether we should do this (though python3 support is clearly something we want).

But in terms of how, look at 3a334b12807eae369d487e0dce594681661fdcc5 as an example, expecially of the commit message, and you can just rm -rf tools/gyp; copy new-gyp to tools/gyp; git add --all tools/gyp; git commit tools/gyp and PR it. I suggest the commit message have the shell commands you used be in it, so its clear its a mechanical task (I assume there will be lots of churn).

@nodejs/gyp

We were (are?) floating patches on top of gyp. I think these have been ported across to node-gyp (https://github.com/nodejs/node-gyp/pull/1518) but it鈥檚 something we need to watch out for (e.g. https://github.com/nodejs/node-gyp/pull/1661 had to address one case where the relative directory structure differs between node-gyp and here).

As discussed at #28537 (comment), in order to keep advancing towards Python 3 compatibility, we should re-vendor the repo node/node-gyp --> this repo's tools/gyp/ directory.

node-gyp !== gyp. We鈥檇 only want to vendor the gyp part of the node-gyp repository (in the absence of a more official maintained upstream gyp source).

This all seems to be done.

https://github.com/nodejs/node-gyp/issues/1791 would still be a huge leap forward.

@cclauss this doesn't seem to be done at all! Isn't the suggestion that we re-vendor "the gyp part of the node-gyp repository"? I don't think that has happened.

I just opened https://github.com/nodejs/node/issues/28555

Perhaps we should be vendoring gyp3 in? https://github.com/nodejs/node/pull/26620 would be an attempt at that.

Was this page helpful?
0 / 5 - 0 ratings