def extract_step(self): """Unpack the source""" if LooseVersion(self.version) < LooseVersion('1.7'): copy_file(self.src[0]['path'], self.builddir) adjust_permissions(os.path.join(self.builddir, self.src[0]['name']), stat.S_IXUSR, add=True) change_dir(self.builddir) run_cmd(os.path.join(self.builddir, self.src[0]['name']), log_all=True, simple=True, inp='') else: PackedBinary.extract_step(self)
def make_module_extra(self): """ Set JAVA_HOME to install dir """ txt = PackedBinary.make_module_extra(self) txt += self.module_generator.set_environment('JAVA_HOME', self.installdir) return txt
def extra_options(): extra_vars = { 'install_amd': [True, "Install AMD software components", CUSTOM], 'install_java': [True, "Install Java JRE for graphical debugger", CUSTOM], 'install_managed': [True, "Install OpenACC Unified Memory Evaluation package", CUSTOM], 'install_nvidia': [True, "Install CUDA Toolkit Components", CUSTOM], } return PackedBinary.extra_options(extra_vars)
def extra_options(): """Custom easyconfig parameters for ANSYS EM""" extra_vars = { 'ansysem_temp_dir': [ None, "Select a default location for all simulations (including local) to use as a temporary work space.", CUSTOM ], 'internal_version': [ None, "Define the version number that ANSYS EM uses internally, e.g. '20.1' for '2020R1'.", CUSTOM ], } return PackedBinary.extra_options(extra_vars)
def extra_options(): extra_vars = { 'install_amd': [True, "Install AMD software components", CUSTOM], 'install_java': [True, "Install Java JRE for graphical debugger", CUSTOM], 'install_managed': [ True, "Install OpenACC Unified Memory Evaluation package", CUSTOM ], 'install_nvidia': [True, "Install CUDA Toolkit Components", CUSTOM], 'install_mpi': [True, "Install OpenMPI", CUSTOM], 'mpi_gpu_support': [True, "Enable GPU support for OpenMPI", CUSTOM], } return PackedBinary.extra_options(extra_vars)
def extra_options(): extra_vars = { 'default_cuda_version': [ None, "CUDA Version to be used as default (10.2 or 11.0 or ...)", CUSTOM ], 'module_add_cuda': [False, "Add NVHPC's CUDA to module", CUSTOM], 'module_add_math_libs': [False, "Add NVHPC's math libraries to module", CUSTOM], 'module_add_nccl': [False, "Add NVHPC's NCCL library to module", CUSTOM], 'module_add_nvshmem': [False, "Add NVHPC's NVSHMEM library to module", CUSTOM], 'module_add_profilers': [False, "Add NVHPC's NVIDIA Profilers to module", CUSTOM], 'module_byo_compilers': [False, "BYO Compilers: Remove compilers from module", CUSTOM], 'module_nvhpc_own_mpi': [False, "Add NVHPC's packaged OpenMPI to module", CUSTOM] } return PackedBinary.extra_options(extra_vars)
def extra_options(): extra_vars = { 'java_options': ['-Xmx256m', "$_JAVA_OPTIONS value set for install and in module file.", CUSTOM], } return PackedBinary.extra_options(extra_vars)
def extra_options(): """Custom easyconfig parameters for MCR.""" extra_vars = { 'java_options': ['-Xmx256m', "$_JAVA_OPTIONS value set for install and in module file.", CUSTOM], } return PackedBinary.extra_options(extra_vars)
def extract_step(self): """Unpack the source""" if LooseVersion(self.version) < LooseVersion('1.7'): try: shutil.copy2(self.src[0]['path'], self.builddir) adjust_permissions(os.path.join(self.builddir, self.src[0]['name']), stat.S_IXUSR, add=True) except OSError, err: raise EasyBuildError("Failed copying installer to builddir or adjunting permissions: %s", err) try: os.chdir(self.builddir) except OSError, err: raise EasyBuildError("Failed to move to build dir: %s", err) run_cmd(os.path.join(self.builddir, self.src[0]['name']), log_all=True, simple=True, inp='') else: PackedBinary.extract_step(self) def install_step(self): if LooseVersion(self.version) < LooseVersion('1.7'): try: os.rmdir(self.installdir) shutil.copytree(os.path.join(self.builddir, 'jdk%s' % self.version), self.installdir) except OSError, err: raise EasyBuildError("Failed to install by copying: %s", err) else: PackedBinary.install_step(self) def make_module_extra(self): """ Set JAVA_HOME to install dir """
def extra_options(): extra_vars = { 'java_options': ['-Xmx256m', "$_JAVA_OPTIONS value set for install and in module file.", CUSTOM], 'key': [None, "Installation key(s), make one install for each key. Single key or a list of keys", CUSTOM], } return PackedBinary.extra_options(extra_vars)
def extra_options(): extra_vars = PackedBinary.extra_options() extra_vars['subdir_version'] = [None, "Version to use to determine installation subdirectory", CUSTOM] return extra_vars
def install_step(self): if LooseVersion(self.version) < LooseVersion('1.7'): remove_dir(self.installdir) copy_dir(os.path.join(self.builddir, 'jdk%s' % self.version), self.installdir) else: PackedBinary.install_step(self)
def extra_options(extra_vars=None): extra_vars = { 'arch_name': [None, "Change julia's Project.toml pathname", CUSTOM], } return PackedBinary.extra_options(extra_vars)