當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。