当前位置: 首页>>代码示例>>Python>>正文


Python PythonPackage.configure_step方法代码示例

本文整理汇总了Python中easybuild.easyblocks.generic.pythonpackage.PythonPackage.configure_step方法的典型用法代码示例。如果您正苦于以下问题:Python PythonPackage.configure_step方法的具体用法?Python PythonPackage.configure_step怎么用?Python PythonPackage.configure_step使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在easybuild.easyblocks.generic.pythonpackage.PythonPackage的用法示例。


在下文中一共展示了PythonPackage.configure_step方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: configure_step

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import configure_step [as 别名]
    def configure_step(self):
        """
        Configure and 
        Test if python module is loaded
        """
        if not get_software_root('Python'):
            self.log.error("Python module not loaded")
       
        ConfigureMake.configure_step(self)

        try:
            os.chdir('python')
            PythonPackage.configure_step(self)
            os.chdir('..')
        except OSError, err:
            self.log.error("Failed to configure libxml2 Python bindings: %s" % err)
开发者ID:billy-mahimahi,项目名称:easybuild-easyblocks,代码行数:18,代码来源:libxml2.py

示例2: install_step

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import configure_step [as 别名]
    def install_step(self):
        """
        Install libxml2 and install python bindings
        """
        ConfigureMake.install_step(self)

        try:
            # We can only do the python bindings after the initial installation
            # since setup.py expects to find the include dir in the installation path
            # and that only exists after installation
            os.chdir('python')
            PythonPackage.configure_step(self)
            # set cflags to point to include folder for the compilation step to succeed
            env.setvar('CFLAGS', "-I../include")
            PythonPackage.build_step(self)
            PythonPackage.install_step(self)
            os.chdir('..')
        except OSError, err:
            raise EasyBuildError("Failed to install libxml2 Python bindings: %s", err)
开发者ID:jerowe,项目名称:easybuild-easyblocks,代码行数:21,代码来源:libxml2.py

示例3: install_step

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import configure_step [as 别名]
    def install_step(self):
        """
        Custom install step for libxml2;
        also build Python bindings ourselves if desired (only for older libxml2 versions
        """
        ConfigureMake.install_step(self)

        if self.with_python_bindings and LooseVersion(self.version) < LooseVersion('2.9.2'):
            try:
                # We can only do the Python bindings after the initial installation
                # since setup.py expects to find the include dir in the installation path
                # and that only exists after installation
                os.chdir('python')
                PythonPackage.configure_step(self)
                # set cflags to point to include folder for the compilation step to succeed
                env.setvar('CFLAGS', "-I../include")
                PythonPackage.build_step(self)
                PythonPackage.install_step(self)
                os.chdir('..')
            except OSError as err:
                raise EasyBuildError("Failed to install libxml2 Python bindings: %s", err)
开发者ID:ULHPC,项目名称:easybuild-easyblocks,代码行数:23,代码来源:libxml2.py

示例4: configure_step

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import configure_step [as 别名]
 def configure_step(self, *args, **kwargs):
     """Configure build using 'python configure'."""
     PythonPackage.configure_step(self, *args, **kwargs)
     cmd = ' '.join([self.cfg['preconfigopts'], self.python_cmd, self.cfg['configopts']])
     run_cmd(cmd, log_all=True)
开发者ID:dlagrava,项目名称:easybuild-easyblocks,代码行数:7,代码来源:configuremakepythonpackage.py

示例5: configure_step

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import configure_step [as 别名]
    def configure_step(self, *args, **kwargs):
        """Main configuration using cmake"""

        PythonPackage.configure_step(self, *args, **kwargs)

        return CMakeMake.configure_step(self, *args, **kwargs)
开发者ID:FredHutch,项目名称:easybuild-easyblocks,代码行数:8,代码来源:cmakepythonpackage.py

示例6: configure_step

# 需要导入模块: from easybuild.easyblocks.generic.pythonpackage import PythonPackage [as 别名]
# 或者: from easybuild.easyblocks.generic.pythonpackage.PythonPackage import configure_step [as 别名]
 def configure_step(self):
     """Configure EggLib build/install procedure."""
     # only need to configure Python library here, configuration of C++ library is done in install step
     PythonPackage.configure_step(self)
开发者ID:dlagrava,项目名称:easybuild-easyblocks,代码行数:6,代码来源:egglib.py


注:本文中的easybuild.easyblocks.generic.pythonpackage.PythonPackage.configure_step方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。