本文整理汇总了Python中pants.option.options_fingerprinter.OptionsFingerprinter.combined_options_fingerprint_for_scope方法的典型用法代码示例。如果您正苦于以下问题:Python OptionsFingerprinter.combined_options_fingerprint_for_scope方法的具体用法?Python OptionsFingerprinter.combined_options_fingerprint_for_scope怎么用?Python OptionsFingerprinter.combined_options_fingerprint_for_scope使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pants.option.options_fingerprinter.OptionsFingerprinter
的用法示例。
在下文中一共展示了OptionsFingerprinter.combined_options_fingerprint_for_scope方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: options_fingerprint
# 需要导入模块: from pants.option.options_fingerprinter import OptionsFingerprinter [as 别名]
# 或者: from pants.option.options_fingerprinter.OptionsFingerprinter import combined_options_fingerprint_for_scope [as 别名]
def options_fingerprint(self):
return OptionsFingerprinter.combined_options_fingerprint_for_scope(
GLOBAL_SCOPE,
self._bootstrap_options,
fingerprint_key='daemon',
invert=True
)
示例2: _options_fingerprint
# 需要导入模块: from pants.option.options_fingerprinter import OptionsFingerprinter [as 别名]
# 或者: from pants.option.options_fingerprinter.OptionsFingerprinter import combined_options_fingerprint_for_scope [as 别名]
def _options_fingerprint(self, scope):
options_hasher = sha1()
options_hasher.update(scope.encode('utf-8'))
options_fp = OptionsFingerprinter.combined_options_fingerprint_for_scope(
scope,
self.context.options,
build_graph=self.context.build_graph,
include_passthru=self.supports_passthru_args(),
)
options_hasher.update(options_fp.encode('utf-8'))
return options_hasher.hexdigest() if PY3 else options_hasher.hexdigest().decode('utf-8')