homebridge / node-pty-prebuilt-multiarch

A parallel fork of node-pty providing ia32, amd64, arm, and aarch64 prebuilt packages for macOS, Windows and Linux (glibc and musl libc).

Home Page:https://www.npmjs.com/package/@homebridge/node-pty-prebuilt-multiarch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOS build is failing with missing distutils

NorthernMan54 opened this issue · comments

Analysis

File "/Users/runner/work/node-pty-prebuilt-multiarch/node-pty-prebuilt-multiarch/node_modules/prebuild/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
[71](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:72)
Prebuild Result  2 null undefined
[72](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:73)
    import gyp.input
[73](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:74)
  File "/Users/runner/work/node-pty-prebuilt-multiarch/node-pty-prebuilt-multiarch/node_modules/prebuild/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
[74](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:75)
    from distutils.version import StrictVersion
[75](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:76)
ModuleNotFoundError: No module named 'distutils'
[76](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:77)
prebuild ERR! configure error 
[77](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:78)
prebuild ERR! stack Error: `gyp` failed with exit code: 1
[78](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:79)
prebuild ERR! stack     at ChildProcess.onCpExit (/Users/runner/work/node-pty-prebuilt-multiarch/node-pty-prebuilt-multiarch/node_modules/prebuild/node_modules/node-gyp/lib/configure.js:325:16)
[79](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:80)
prebuild ERR! stack     at ChildProcess.emit (node:events:517:28)
[80](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:81)
prebuild ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
[81](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:82)
prebuild ERR! not ok 
[82](https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/6755307135/job/18364584329#step:10:83)
prebuild ERR! build Error: `gyp` failed with exit code: 1

And a failed build is not breaking the main build process

Expected Behavior

www

Steps To Reproduce

ww

Logs

ww

Configuration

ww

Environment

  • OS:
  • Software:
  • Node:
  • npm:

Process Supervisor

hb-service

Additional Context

No response

Resolved with #30