code: def build_extension(self, ext):
      try:
          build_ext.build_extension(self, ext)
      except (
          CCompilerError,
          DistutilsExecError,
          DistutilsPlatformError,
          ValueError,
      ):
          raise BuildFailed("Could not compile C extension.")
  
file_path: river/build.py
imports: import platform
  from distutils.command.build_ext import build_ext
  from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
  import setuptools
  from setuptools_rust import Binding, RustExtension
label_desc: Use image node_id 2 for calling the ExtBuilder obj's underlying member method code with example usage: obj.build_extension(ext) without return types