def build_extension(self, ext):
"""Overridden method. Builds each Extension."""
ext.runtime_library_dirs = self.rpath
# Unfortunately things don't work as they should on the Mac...
if platform.system() == 'Darwin':
for path in self.rpath:
ext.extra_link_args.append('-Wl,-rpath,' + path)
# Call the base class method.
build_ext.build_extension(self, ext)
setup.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录