Пример #1
0
 def c_compiler(self):
     """
     Check availability of C compiler.
     """
     compiler = None
     msg = 'Cannot find GCC, MinGW or Visual Studio in PATH.'
     if is_win:
         # Try MSVC.
         compiler = misc.find_executable('cl')
     if compiler is None:
         # Try GCC.
         compiler = misc.find_executable('gcc')
         if compiler is None:
             return msg
     return None  # C compiler was found.
Пример #2
0
 def c_compiler(self):
     """
     Check availability of C compiler.
     """
     compiler = None
     msg = 'Cannot find GCC, MinGW or Visual Studio in PATH.'
     if is_win:
         # Try MSVC.
         compiler = misc.find_executable('cl')
     if compiler is None:
         # Try GCC.
         compiler = misc.find_executable('gcc')
         if compiler is None:
             return msg
     return None  # C compiler was found.