本文整理汇总了Python中distutils.ccompiler.CCompiler._fix_lib_args方法的典型用法代码示例。如果您正苦于以下问题:Python CCompiler._fix_lib_args方法的具体用法?Python CCompiler._fix_lib_args怎么用?Python CCompiler._fix_lib_args使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类distutils.ccompiler.CCompiler
的用法示例。
在下文中一共展示了CCompiler._fix_lib_args方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _fix_lib_args
# 需要导入模块: from distutils.ccompiler import CCompiler [as 别名]
# 或者: from distutils.ccompiler.CCompiler import _fix_lib_args [as 别名]
def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
"""Remove standard library path from rpath"""
libraries, library_dirs, runtime_library_dirs = \
CCompiler._fix_lib_args(self, libraries, library_dirs,
runtime_library_dirs)
libdir = sysconfig.get_config_var('LIBDIR')
if runtime_library_dirs and (libdir in runtime_library_dirs):
runtime_library_dirs.remove(libdir)
return libraries, library_dirs, runtime_library_dirs
示例2: _fix_lib_args
# 需要导入模块: from distutils.ccompiler import CCompiler [as 别名]
# 或者: from distutils.ccompiler.CCompiler import _fix_lib_args [as 别名]
def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
# we need to have this method here, to avoid an endless
# recursion in UnixCCompiler._fix_lib_args.
libraries, library_dirs, runtime_library_dirs = \
CCompiler._fix_lib_args(self, libraries, library_dirs,
runtime_library_dirs)
libdir = sysconfig.get_config_var('LIBDIR')
if runtime_library_dirs and (libdir in runtime_library_dirs):
runtime_library_dirs.remove(libdir)
return libraries, library_dirs, runtime_library_dirs