parameters: (self)
docstring: Compile the extension module.
docstring_summary: Compile the extension module.
docstring_tokens: Compile the extension module .
function: def compile(self):
          """
          Compile the extension module.
          """
          self._toolchain.verbose = self.verbose
          build_dir = tempfile.mkdtemp(prefix='pycc-build-%s-' % self._basename)
  
          # Compile object file
          objects, dll_exports = self._compile_object_files(build_dir)
  
          # Compile mixins
          objects += self._compile_mixins(build_dir)
  
          # Then create shared library
          extra_ldflags = self._get_extra_ldflags()
          output_dll = os.path.join(self._output_dir, self._output_file)
          libraries = self._toolchain.get_python_libraries()
          library_dirs = self._toolchain.get_python_library_dirs()
          self._toolchain.link_shared(output_dll, objects,
                                      libraries, library_dirs,
                                      export_symbols=dll_exports,
                                      extra_ldflags=extra_ldflags)
  
          shutil.rmtree(build_dir)
function_tokens: def compile ( self ) : self . _toolchain . verbose = self . verbose build_dir = tempfile . mkdtemp ( prefix = 'pycc-build-%s-' % self . _basename ) # Compile object file objects , dll_exports = self . _compile_object_files ( build_dir ) # Compile mixins objects += self . _compile_mixins ( build_dir ) # Then create shared library extra_ldflags = self . _get_extra_ldflags ( ) output_dll = os . path . join ( self . _output_dir , self . _output_file ) libraries = self . _toolchain . get_python_libraries ( ) library_dirs = self . _toolchain . get_python_library_dirs ( ) self . _toolchain . link_shared ( output_dll , objects , libraries , library_dirs , export_symbols = dll_exports , extra_ldflags = extra_ldflags ) shutil . rmtree ( build_dir )