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


Python Application.make_module_extra方法代码示例

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


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

示例1: make_module_extra

# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import make_module_extra [as 别名]
    def make_module_extra(self):
        """Add the install directory to the PATH."""

        txt = Application.make_module_extra(self)
        txt += self.moduleGenerator.prependPaths("PATH", [""])
        self.log.debug("make_module_extra added this: %s" % txt)
        return txt
开发者ID:nudded,项目名称:easybuild,代码行数:9,代码来源:binary.py

示例2: make_module_extra

# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import make_module_extra [as 别名]
    def make_module_extra(self):
        """Set NCARG_ROOT environment variable in module."""

        txt = Application.make_module_extra(self)
        txt += "setenv\tNCARG_ROOT\t$root\n"

        return txt
开发者ID:nudded,项目名称:easybuild,代码行数:9,代码来源:ncl.py

示例3: make_module_extra

# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import make_module_extra [as 别名]
    def make_module_extra(self):
        """Add setting of FSLDIR in module."""

        txt = Application.make_module_extra(self)

        txt += self.moduleGenerator.setEnvironment("FSLDIR", "$root/fsl")

        return txt
开发者ID:nudded,项目名称:easybuild,代码行数:10,代码来源:fsl.py

示例4: make_module_extra

# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import make_module_extra [as 别名]
    def make_module_extra(self):
        """Add netCDF environment variables to module file."""

        txt = Application.make_module_extra(self)

        txt += get_netcdf_module_set_cmds(self.log)

        return txt
开发者ID:nudded,项目名称:easybuild,代码行数:10,代码来源:wps.py

示例5: make_module_extra

# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import make_module_extra [as 别名]
    def make_module_extra(self):
        """Define extra environment variables required by OpenFOAM"""

        txt = Application.make_module_extra(self)

        env_vars = [("WM_PROJECT_VERSION", self.version()),
                    ("FOAM_INST_DIR", "$root"),
                    ("WM_COMPILER", self.wm_compiler),
                    ("WM_MPLIB", self.wm_mplib),
                    ("MPI_ARCH_PATH", self.mpipath),
                    ("FOAM_BASH", "$root/%s-%s/etc/bashrc" % (self.name(), self.version())),
                    ("FOAM_CSH", "$root/%s-%s/etc/cshrc" % (self.name(), self.version())),
                    ]

        for env_var in env_vars:
            txt += "setenv\t%s\t%s\n" % env_var

        return txt
开发者ID:nudded,项目名称:easybuild,代码行数:20,代码来源:openfoam.py

示例6: make_module_extra

# 需要导入模块: from easybuild.framework.application import Application [as 别名]
# 或者: from easybuild.framework.application.Application import make_module_extra [as 别名]
    def make_module_extra(self):

        txt = Application.make_module_extra(self)
        txt += get_netcdf_module_set_cmds(self.log)

        return txt
开发者ID:nudded,项目名称:easybuild,代码行数:8,代码来源:wrf.py


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