本文整理汇总了Python中distutils.ccompiler.CCompiler.EXECUTABLE属性的典型用法代码示例。如果您正苦于以下问题:Python CCompiler.EXECUTABLE属性的具体用法?Python CCompiler.EXECUTABLE怎么用?Python CCompiler.EXECUTABLE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类distutils.ccompiler.CCompiler
的用法示例。
在下文中一共展示了CCompiler.EXECUTABLE属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: manifest_get_embed_info
# 需要导入模块: from distutils.ccompiler import CCompiler [as 别名]
# 或者: from distutils.ccompiler.CCompiler import EXECUTABLE [as 别名]
def manifest_get_embed_info(self, target_desc, ld_args):
# If a manifest should be embedded, return a tuple of
# (manifest_filename, resource_id). Returns None if no manifest
# should be embedded. See http://bugs.python.org/issue7833 for why
# we want to avoid any manifest for extension modules if we can)
for arg in ld_args:
if arg.startswith("/MANIFESTFILE:"):
temp_manifest = arg.split(":", 1)[1]
break
else:
# no /MANIFESTFILE so nothing to do.
return None
if target_desc == CCompiler.EXECUTABLE:
# by default, executables always get the manifest with the
# CRT referenced.
mfid = 1
else:
# Extension modules try and avoid any manifest if possible.
mfid = 2
temp_manifest = self._remove_visual_c_ref(temp_manifest)
if temp_manifest is None:
return None
return temp_manifest, mfid