本文整理汇总了Python中easybuild.easyblocks.generic.cmakemake.CMakeMake.install_step方法的典型用法代码示例。如果您正苦于以下问题:Python CMakeMake.install_step方法的具体用法?Python CMakeMake.install_step怎么用?Python CMakeMake.install_step使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类easybuild.easyblocks.generic.cmakemake.CMakeMake
的用法示例。
在下文中一共展示了CMakeMake.install_step方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: install_step
# 需要导入模块: from easybuild.easyblocks.generic.cmakemake import CMakeMake [as 别名]
# 或者: from easybuild.easyblocks.generic.cmakemake.CMakeMake import install_step [as 别名]
def install_step(self):
"""Custom installation procedure for BamTools."""
if LooseVersion(self.version) < LooseVersion('2.5.0'):
self.cfg['files_to_copy'] = ['bin', 'lib', 'include', 'docs', 'LICENSE', 'README']
MakeCp.install_step(self)
else:
CMakeMake.install_step(self)
示例2: install_step
# 需要导入模块: from easybuild.easyblocks.generic.cmakemake import CMakeMake [as 别名]
# 或者: from easybuild.easyblocks.generic.cmakemake.CMakeMake import install_step [as 别名]
def install_step(self):
"""
Install by copying files to install dir
"""
if LooseVersion(self.version) >= LooseVersion('3.3.4'):
CMakeMake.install_step(self)
else:
mkdir(os.path.join(self.installdir, 'include'), parents=True)
for subdir in ['Eigen', 'unsupported']:
srcdir = os.path.join(self.cfg['start_dir'], subdir)
destdir = os.path.join(self.installdir, os.path.join('include', subdir))
copy_dir(srcdir, destdir, ignore=shutil.ignore_patterns('CMakeLists.txt'))
if LooseVersion(self.version) >= LooseVersion('3.0'):
srcfile = os.path.join(self.cfg['start_dir'], 'signature_of_eigen3_matrix_library')
destfile = os.path.join(self.installdir, 'include/signature_of_eigen3_matrix_library')
copy_file(srcfile, destfile)
示例3: install_step
# 需要导入模块: from easybuild.easyblocks.generic.cmakemake import CMakeMake [as 别名]
# 或者: from easybuild.easyblocks.generic.cmakemake.CMakeMake import install_step [as 别名]
def install_step(self):
"""Install with cmake install"""
return CMakeMake.install_step(self)