code: def build_extension(self, ext):
      ext._convert_pyx_sources_to_lang()
      _compiler = self.compiler
      try:
          if isinstance(ext, Library):
              self.compiler = self.shlib_compiler
          _build_ext.build_extension(self, ext)
          if ext._needs_stub:
              cmd = self.get_finalized_command("build_py").build_lib
              self.write_stub(cmd, ext)
      finally:
          self.compiler = _compiler
  
imports: import os
  import sys
  import itertools
  from distutils.command.build_ext import build_ext
  from distutils.file_util import copy_file
  from distutils.ccompiler import new_compiler
  from distutils.sysconfig import customize_compiler, get_config_var
  from distutils.errors import DistutilsError
  from distutils import log
  from setuptools.extension import Library
  from setuptools.extern import six
  from distutils.sysconfig import _config_vars
label_desc: Use image node_id 8 for calling the build_ext obj's underlying member method code with example usage: obj.build_extension(ext) without return types