parameters: (self, opts)
docstring: Get the Qt configuration that can be extracted from qmake.  opts
          are the command line options.
docstring_summary: Get the Qt configuration that can be extracted from qmake.  opts
          are the command line options.
docstring_tokens: Get the Qt configuration that can be extracted from qmake . opts are the command line options .
function: def get_qt_configuration(self, opts):
          """ Get the Qt configuration that can be extracted from qmake.  opts
          are the command line options.
          """
  
          try:
              qmake = opts.qmake
          except AttributeError:
              # Windows.
              qmake = None
  
          if qmake is not None:
              self.qmake = qmake
          elif self.qmake is None:
              # Under Windows qmake and the Qt DLLs must be on the system PATH
              # otherwise the dynamic linker won't be able to resolve the
              # symbols.  On other systems we assume we can just run qmake by
              # using its full pathname.
              if sys.platform == 'win32':
                  error("Make sure you have a working Qt qmake on your PATH.")
              else:
                  error(
                          "Make sure you have a working Qt qmake on your PATH "
                          "or use the --qmake argument to explicitly specify a "
                          "working Qt qmake.")
  
          # Query qmake.
          qt_config = _TargetQtConfiguration(self.qmake)
  
          # The binary MacOS/X Qt installer defaults to XCode.  If this is what
          # we might have then use macx-clang (Qt v5) or macx-g++ (Qt v4).
          if sys.platform == 'darwin':
              try:
                  # Qt v5.
                  if qt_config.QMAKE_SPEC == 'macx-xcode':
                      # This will exist (and we can't check anyway).
                      self.qmake_spec = 'macx-clang'
                  else:
                      # No need to explicitly name the default.
                      self.qmake_spec = ''
              except AttributeError:
                  # Qt v4.
                  self.qmake_spec = 'macx-g++'
  
          self.qt_version_str = getattr(qt_config, 'QT_VERSION', '')
          self.api_dir = os.path.join(qt_config.QT_INSTALL_DATA, 'qsci')
          self.qt_inc_dir = qt_config.QT_INSTALL_HEADERS
          self.qt_lib_dir = qt_config.QT_INSTALL_LIBS
  
          if self.sysroot == '':
              self.sysroot = getattr(qt_config, 'QT_SYSROOT', '')
function_tokens: def get_qt_configuration ( self , opts ) : try : qmake = opts . qmake except AttributeError : # Windows. qmake = None if qmake is not None : self . qmake = qmake elif self . qmake is None : # Under Windows qmake and the Qt DLLs must be on the system PATH # otherwise the dynamic linker won't be able to resolve the # symbols.  On other systems we assume we can just run qmake by # using its full pathname. if sys . platform == 'win32' : error ( "Make sure you have a working Qt qmake on your PATH." ) else : error ( "Make sure you have a working Qt qmake on your PATH " "or use the --qmake argument to explicitly specify a " "working Qt qmake." ) # Query qmake. qt_config = _TargetQtConfiguration ( self . qmake ) # The binary MacOS/X Qt installer defaults to XCode.  If this is what # we might have then use macx-clang (Qt v5) or macx-g++ (Qt v4). if sys . platform == 'darwin' : try : # Qt v5. if qt_config . QMAKE_SPEC == 'macx-xcode' : # This will exist (and we can't check anyway). self . qmake_spec = 'macx-clang' else : # No need to explicitly name the default. self . qmake_spec = '' except AttributeError : # Qt v4. self . qmake_spec = 'macx-g++' self . qt_version_str = getattr ( qt_config , 'QT_VERSION' , '' ) self . api_dir = os . path . join ( qt_config . QT_INSTALL_DATA , 'qsci' ) self . qt_inc_dir = qt_config . QT_INSTALL_HEADERS self . qt_lib_dir = qt_config . QT_INSTALL_LIBS if self . sysroot == '' : self . sysroot = getattr ( qt_config , 'QT_SYSROOT' , '' )