예제 #1
0
파일: binary.py 프로젝트: nudded/easybuild
    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
예제 #2
0
파일: ncl.py 프로젝트: nudded/easybuild
    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
예제 #3
0
파일: fsl.py 프로젝트: nudded/easybuild
    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
예제 #4
0
파일: wps.py 프로젝트: nudded/easybuild
    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
예제 #5
0
    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
예제 #6
0
파일: wrf.py 프로젝트: nudded/easybuild
    def make_module_extra(self):

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

        return txt