本文整理匯總了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