MacOS native fails due to missing MSCommon.py

I am trying to use googletest on MacOS with the native platform. SCons is blowing up with

...
File "/Users/wmb/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Tool/__init__.py", line 201:
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 759:
    
  File "<frozen importlib._bootstrap>", line 491:
    
  File "/Users/wmb/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Tool/clangxx.py", line 43:
    from SCons.Tool.MSCommon import msvc_setup_env_once

The platform is correctly identified as “darwin”, so the later call to msvc_setup_env_once would not be executed, but it does not matter because Python throw an exception on the import line.

The file SCons/Tool/MSCommon.py is not present in the tree. I think it is being excluded as a result of this in .platformio/packages/tool-scons/package.json:

    "exclude": [
      ".piopm",
      "**/__pycache__",
      "**/SCons/Tool/docbook",
      "**/SCons/Tool/MSCommon",
      "**/SCons/Tool/ninja"
    ]

It seems to me that, if MSCommon is excluded, then it is not appropriate to import it.

Commenting out the line from SCons.Tool.MSCommon import msvc_setup_env_once in clangxx.py solves the problem.