class_docstr: A custom build extension for adding compiler-specific options.
code: def build_extensions(self):
      ct = self.compiler.compiler_type
      opts = self.c_opts.get(ct, [])
      if ct == "unix":
          opts.append(
              '-DVERSION_INFO="%s"' % self.distribution.get_version()
          )
      for ext in self.extensions:
          ext.extra_compile_args = deepcopy(opts)
          ext.extra_link_args = deepcopy(opts)
          lang = ext.language or self.compiler.detect_language(
              ext.sources
          )
          if lang == "c++":
              ext.extra_compile_args.append("-std=c++11")
              ext.extra_link_args.append("-std=c++11")
      build_ext.build_extensions(self)
  
file_path: brainiak/setup.py
imports: from distutils import sysconfig
  from setuptools import setup, Extension, find_packages
  from setuptools.command.build_ext import build_ext
  import os
  import site
  import sys
  import setuptools
  from copy import deepcopy
label_desc: Use image node_id 1 for calling the BuildExt obj's underlying member method code with example usage: obj.build_extensions() without return types