-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[QUESTION] node-gyp@7 for npm@7 please #1281
Comments
node-gyp@7 is out; most notably for npm is the synced dependencies which should lead to a big dedupe. One thing we haven't dealt with yet is that |
Hi there folks, I contributed a fix to node-gyp v7 that helps it find Python 3 on Windows, when installed from Python.org. I think it would be great to have that available to more npm users. 👍 to this from me. It can mean the difference between being able to install native code "automatically"/out-of-the-box, vs fiddling with config options to tell node-gyp where to find Python. |
@rvagg This is awesome! We're allegedly doing another beta release today, but a few fixes are taking a bit longer than expected, so it might delay a few days. I expect at least a month or two before it's GA. I'll try to pull in node-gyp 7, and let you know if there are more things that can be deduped out. We're also going to be bumping |
For the request thing, |
I often check our deps against npm's deps to make sure there's maximum opportunity to dedupe, so if you do bump things then I think we'd be happy to push out releases with just those things bumped so we can get in sync. The only use of request that we have is in https://github.com/nodejs/node-gyp/blob/master/lib/install.js, but we also load in a proxy.js to handle some custom env var stuff for proxies. It probably shouldn't be too difficult to get something else in place of request, even with a different API. But we're dealing with heavily legacy code in node-gyp that doesn't lend itself to minor refactoring (it's the kind of thing that invites major refactoring), and the concern about getting the proxying situation right is always a big deal. But a major bump in npm version might be a good opportunity to introduce major changes like this that may break for users, they at least get a more clear choice about versions. |
I'll put this on my todo list to take a look at in the next few weeks, with an intention to get request out of there before npm v7 goes to GA. Hopefully we can keep the refactoring to a minimum 😆 |
This updates node-gyp to v7, allowing us to deduplicate a lot of significant dependencies. Fix: #1281 Fix: npm/statusboard#67
This updates node-gyp to v7, allowing us to deduplicate a lot of significant dependencies. Fix: #1281 Fix: npm/statusboard#67 PR-URL: #1846 Credit: @isaacs Close: #1846 Reviewed-by: @ruyadorno
landed in |
nodejs/node-gyp#2124
I don't know what the npm@7 timeframe is, but I'll try and get node-gyp@7 out this week, there's just a couple of notable updates.
The current version in here is v5, which works, but still prefers Python 2 over 3. node-gyp@6 switches that around and will use Python 3 first before searching for Python 2. node-gyp@7 includes an updated GYP (we've now fully accepted responsibility for Google's abandonware, see https://github.com/nodejs/gyp-next) and will update dependencies to match the ones you have in the v7.0.0-beta branch here so you can do some heavy deduping over what you're shipping now, see nodejs/node-gyp#2125 (notably
semver
,tar
andwhich
, which you'll be pulling in two versions of to use node-gyp@5).If you're working to a more agressive timeframe than this please let me know. It would be good to get this all synced and sorted out.
The text was updated successfully, but these errors were encountered: