parameters: (target_config)
docstring: See if the VendorID library and include file can be found.
      target_config is the target configuration.
docstring_summary: See if the VendorID library and include file can be found.
      target_config is the target configuration.
docstring_tokens: See if the VendorID library and include file can be found . target_config is the target configuration .
function: def check_vendorid(target_config):
      """ See if the VendorID library and include file can be found.
      target_config is the target configuration.
      """
  
      if target_config.py_version >= 0x030000:
          # VendorID doesn't support Python v3.
          target_config.vend_enabled = False
      elif target_config.vend_enabled:
          if os.access(os.path.join(target_config.vend_inc_dir, 'vendorid.h'), os.F_OK):
              if glob.glob(os.path.join(target_config.vend_lib_dir, '*vendorid*')):
                  inform("The VendorID package was found.")
              else:
                  target_config.vend_enabled = False
                  inform(
                          "The VendorID library could not be found in %s and so "
                          "signed interpreter checking will be disabled. If the "
                          "VendorID package is installed then use the "
                          "--vendorid-libdir argument to explicitly specify the "
                          "correct directory." % target_config.vend_lib_dir)
          else:
              target_config.vend_enabled = False
              inform(
                      "vendorid.h could not be found in %s and so signed "
                      "interpreter checking will be disabled. If the VendorID "
                      "package is installed then use the --vendorid-incdir "
                      "argument to explicitly specify the correct directory." %
                              target_config.vend_inc_dir)
function_tokens: def check_vendorid ( target_config ) : if target_config . py_version >= 0x030000 : # VendorID doesn't support Python v3. target_config . vend_enabled = False elif target_config . vend_enabled : if os . access ( os . path . join ( target_config . vend_inc_dir , 'vendorid.h' ) , os . F_OK ) : if glob . glob ( os . path . join ( target_config . vend_lib_dir , '*vendorid*' ) ) : inform ( "The VendorID package was found." ) else : target_config . vend_enabled = False inform ( "The VendorID library could not be found in %s and so " "signed interpreter checking will be disabled. If the " "VendorID package is installed then use the " "--vendorid-libdir argument to explicitly specify the " "correct directory." % target_config . vend_lib_dir ) else : target_config . vend_enabled = False inform ( "vendorid.h could not be found in %s and so signed " "interpreter checking will be disabled. If the VendorID " "package is installed then use the --vendorid-incdir " "argument to explicitly specify the correct directory." % target_config . vend_inc_dir )