Skip to content

Commit 96b8545

Browse files
authored
Upgrade node-gyp package to fix Python 3.12 issue (#969)
Fix an issue for Python 3.12 and node-gyp where node-gyp relies on the "distutils" package in Python, which was removed in 3.12. It resulted in this error upon install: ``` Traceback (most recent call last): File "/Users/tombruijn/appsignal/nodejs/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "/Users/tombruijn/appsignal/nodejs/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "/Users/tombruijn/appsignal/nodejs/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' ``` Upgrade node-gyp to resolve this issue. Related issue in node-gyp: nodejs/node-gyp#2869
1 parent 72e9e73 commit 96b8545

File tree

3 files changed

+938
-580
lines changed

3 files changed

+938
-580
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
bump: "patch"
3+
type: "fix"
4+
---
5+
6+
Fix compatibility issue with Node.js's node-gyp package and Python 3.12.0. Python 3.12.0 removed a package called "distutils", causing the extension to fail to install. Upgrade the node-gyp package with the fix for this issue.

0 commit comments

Comments
 (0)