Build: No module named 'distutils.spawn'

  • Version: master
  • Platform: WSL Ubuntu
  • Subsystem:

I know Node.js doesn't officially support Windows Subsystem for Linux, but I've been quite happily using this to develop on Windows for a while now.

Some recent change in the last week or two on master seems to be causing a build issue though as I now get the following output when running ./configure -

Traceback (most recent call last):
  File "./configure", line 20, in <module>
    from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'

I have tried running git clean -fdx.

Any suggestions as to how to fix this would be a huge help to get going again here.