https://pantsbuild.org/ logo
#general
Title
# general
h

happy-kitchen-89482

05/02/2017, 5:40 PM
Copy code
zinc_compile_scope = 'compile.zinc'
    zinc_opts_parser = context.options.get_parser(zinc_compile_scope)
    opt_vals = context.options.for_scope(zinc_compile_scope)
    hasher = sha1()
    for args, kwargs in zinc_opts_parser.option_registrations_iter():
      if kwargs.get('fingerprint'):
        hasher.update(str(opt_vals.get(kwargs['dest'])))
    self._zinc_args_fprint_mixin = hasher.hexdigest()