Format: application/octet-stream
⬇ Download File (3.0 KB)
   1  from distutils import log as log
   2  from distutils.ccompiler import CCompiler
   3  from distutils.core import Command as Command
   4  from distutils.errors import DistutilsExecError as DistutilsExecError
   5  from distutils.sysconfig import customize_compiler as customize_compiler
   6  from typing import Dict, List, Optional, Pattern, Sequence, Tuple, Union
   7  
   8  LANG_EXT: Dict[str, str]
   9  
  10  class config(Command):
  11      description: str = ...
  12      # Tuple is full name, short name, description
  13      user_options: Sequence[Tuple[str, Optional[str], str]] = ...
  14      compiler: Optional[Union[str, CCompiler]] = ...
  15      cc: Optional[str] = ...
  16      include_dirs: Optional[Sequence[str]] = ...
  17      libraries: Optional[Sequence[str]] = ...
  18      library_dirs: Optional[Sequence[str]] = ...
  19      noisy: int = ...
  20      dump_source: int = ...
  21      temp_files: Sequence[str] = ...
  22      def initialize_options(self) -> None: ...
  23      def finalize_options(self) -> None: ...
  24      def run(self) -> None: ...
  25      def try_cpp(
  26          self,
  27          body: Optional[str] = ...,
  28          headers: Optional[Sequence[str]] = ...,
  29          include_dirs: Optional[Sequence[str]] = ...,
  30          lang: str = ...,
  31      ) -> bool: ...
  32      def search_cpp(
  33          self,
  34          pattern: Union[Pattern[str], str],
  35          body: Optional[str] = ...,
  36          headers: Optional[Sequence[str]] = ...,
  37          include_dirs: Optional[Sequence[str]] = ...,
  38          lang: str = ...,
  39      ) -> bool: ...
  40      def try_compile(
  41          self, body: str, headers: Optional[Sequence[str]] = ..., include_dirs: Optional[Sequence[str]] = ..., lang: str = ...
  42      ) -> bool: ...
  43      def try_link(
  44          self,
  45          body: str,
  46          headers: Optional[Sequence[str]] = ...,
  47          include_dirs: Optional[Sequence[str]] = ...,
  48          libraries: Optional[Sequence[str]] = ...,
  49          library_dirs: Optional[Sequence[str]] = ...,
  50          lang: str = ...,
  51      ) -> bool: ...
  52      def try_run(
  53          self,
  54          body: str,
  55          headers: Optional[Sequence[str]] = ...,
  56          include_dirs: Optional[Sequence[str]] = ...,
  57          libraries: Optional[Sequence[str]] = ...,
  58          library_dirs: Optional[Sequence[str]] = ...,
  59          lang: str = ...,
  60      ) -> bool: ...
  61      def check_func(
  62          self,
  63          func: str,
  64          headers: Optional[Sequence[str]] = ...,
  65          include_dirs: Optional[Sequence[str]] = ...,
  66          libraries: Optional[Sequence[str]] = ...,
  67          library_dirs: Optional[Sequence[str]] = ...,
  68          decl: int = ...,
  69          call: int = ...,
  70      ) -> bool: ...
  71      def check_lib(
  72          self,
  73          library: str,
  74          library_dirs: Optional[Sequence[str]] = ...,
  75          headers: Optional[Sequence[str]] = ...,
  76          include_dirs: Optional[Sequence[str]] = ...,
  77          other_libraries: List[str] = ...,
  78      ) -> bool: ...
  79      def check_header(
  80          self,
  81          header: str,
  82          include_dirs: Optional[Sequence[str]] = ...,
  83          library_dirs: Optional[Sequence[str]] = ...,
  84          lang: str = ...,
  85      ) -> bool: ...
  86  
  87  def dump_file(filename: str, head: Optional[str] = ...) -> None: ...
  88