Skip to content
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

feat: upgrade node-gyp@8 to support python3 #385

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

whatwewant
Copy link
Contributor

@whatwewant whatwewant commented Mar 18, 2022

closes #384

@whatwewant
Copy link
Contributor Author

fix #384

@atian25 atian25 requested review from fengmk2 and killagu March 18, 2022 02:33
@fengmk2
Copy link
Member

fengmk2 commented Mar 19, 2022

https://github.com/nodejs/node-gyp/blob/master/package.json#L37 "node": "^12.22 || ^14.13 || >=16" 跟 npminstall 目前的依赖版本是 node >= 10 有一些差异,需要升级 npminstall major 版本。

@whatwewant 你有测试过 https://github.com/nodejs/node-gyp/blob/v8.4.1/package.json#L37 node-gyp 的 v8 版本吗?它支持 python3 吗?如果可以的话,npminstall 可以只发布 minor 版本。

@fengmk2 fengmk2 self-assigned this Mar 19, 2022
@fengmk2
Copy link
Member

fengmk2 commented Mar 20, 2022

不过 node 10 已经不再是 LTS,我考虑一下直接发一个 major 版本。

@fengmk2 fengmk2 force-pushed the bug/fix-node-gyp-python3-support branch from 54a7578 to 1c8b22b Compare March 20, 2022 15:10
@fengmk2
Copy link
Member

fengmk2 commented Mar 20, 2022

I rebase master and try to use node-gyp@8.4.1

@fengmk2 fengmk2 changed the title fix: node-gyp python3 support feat: upgrade node-gyp@8 to support python3 Mar 20, 2022
@fengmk2 fengmk2 merged commit d02fa24 into cnpm:master Mar 21, 2022
@fengmk2
Copy link
Member

fengmk2 commented Mar 21, 2022

5.7.0

@fengmk2
Copy link
Member

fengmk2 commented Mar 24, 2022

node-gyp 最新版本只支持 python3,我先 revert 这个变更,然后发一个 npminstall major 版本。

@gemwuu
Copy link
Member

gemwuu commented Mar 24, 2022

5.x 也要发个 patch 版本,最新的一次提交修复了 Node10 不兼容问题。

fengmk2 added a commit that referenced this pull request Mar 24, 2022
fengmk2 added a commit that referenced this pull request Mar 24, 2022
This reverts commit d02fa24.

#385 (comment)

Keep should Python2, we will release major version to support Python3
fengmk2 added a commit that referenced this pull request Mar 24, 2022
fengmk2 added a commit that referenced this pull request Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python executable "/usr/bin/python3" is v3.8.10, which is not supported by gyp
3 participants