Skip to content

Commit

Permalink
remove obsolete globals from IntelBase easyblock
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Dec 17, 2024
1 parent e1f522f commit 0d75008
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 20 deletions.
14 changes: 4 additions & 10 deletions easybuild/easyblocks/generic/intelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from easybuild.framework.easyconfig.types import ensure_iterable_license_specs
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import adjust_permissions, find_flexlm_license
from easybuild.tools.filetools import mkdir, read_file, remove_file, write_file
from easybuild.tools.filetools import read_file, remove_file, write_file
from easybuild.tools.run import run_shell_cmd


Expand All @@ -68,20 +68,14 @@

# silent.cfg parameter name for type of license activation (cfr. options listed above)
ACTIVATION_NAME = 'ACTIVATION_TYPE' # since icc/ifort v2013_sp1, impi v4.1.1, imkl v11.1
ACTIVATION_NAME_2012 = 'ACTIVATION' # previous activation type parameter used in older versions
# silent.cfg parameter name for install prefix
INSTALL_DIR_NAME = 'PSET_INSTALL_DIR'
# silent.cfg parameter name for install mode
INSTALL_MODE_NAME = 'PSET_MODE'
# Older (2015 and previous) silent.cfg parameter name for install mode
INSTALL_MODE_NAME_2015 = 'INSTALL_MODE'
# Install mode for 2016 version
# Install mode since 2016 version
INSTALL_MODE = 'install'
# Install mode for 2015 and older versions
INSTALL_MODE_2015 = 'NONRPM'
# silent.cfg parameter name for license file/server specification
LICENSE_FILE_NAME = 'ACTIVATION_LICENSE_FILE' # since icc/ifort v2013_sp1, impi v4.1.1, imkl v11.1
LICENSE_FILE_NAME_2012 = 'PSET_LICENSE_FILE' # previous license file parameter used in older versions
LICENSE_SERIAL_NUMBER = 'ACTIVATION_SERIAL_NUMBER'

COMP_ALL = 'ALL'
Expand Down Expand Up @@ -358,8 +352,8 @@ def install_step_classic(self, silent_cfg_names_map=None, silent_cfg_extras=None
]) % {
'install_dir_name': silent_cfg_names_map.get('install_dir_name', INSTALL_DIR_NAME),
'install_dir': silent_cfg_names_map.get('install_dir', self.installdir),
'install_mode': silent_cfg_names_map.get('install_mode', INSTALL_MODE_2015),
'install_mode_name': silent_cfg_names_map.get('install_mode_name', INSTALL_MODE_NAME_2015),
'install_mode': silent_cfg_names_map.get('install_mode', INSTALL_MODE),
'install_mode_name': silent_cfg_names_map.get('install_mode_name', INSTALL_MODE_NAME),
}

if self.install_components is not None:
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/i/icc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
import re
from easybuild.tools import LooseVersion

from easybuild.easyblocks.generic.intelbase import IntelBase, ACTIVATION_NAME_2012, COMP_ALL
from easybuild.easyblocks.generic.intelbase import LICENSE_FILE_NAME_2012
from easybuild.easyblocks.generic.intelbase import IntelBase, COMP_ALL
from easybuild.easyblocks.t.tbb import get_tbb_gccprefix
from easybuild.tools.run import run_shell_cmd
from easybuild.tools.systemtools import get_shared_lib_ext
Expand Down
1 change: 0 additions & 1 deletion easybuild/easyblocks/i/ifort.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"""

import os
from easybuild.tools import LooseVersion

from easybuild.easyblocks.generic.intelbase import IntelBase
from easybuild.easyblocks.icc import EB_icc # @UnresolvedImport
Expand Down
2 changes: 1 addition & 1 deletion easybuild/easyblocks/i/imkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

import easybuild.tools.environment as env
import easybuild.tools.toolchain as toolchain
from easybuild.easyblocks.generic.intelbase import IntelBase, ACTIVATION_NAME_2012, LICENSE_FILE_NAME_2012
from easybuild.easyblocks.generic.intelbase import IntelBase
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
Expand Down
4 changes: 2 additions & 2 deletions easybuild/easyblocks/i/impi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
from easybuild.tools import LooseVersion

import easybuild.tools.toolchain as toolchain
from easybuild.easyblocks.generic.intelbase import IntelBase, ACTIVATION_NAME_2012, LICENSE_FILE_NAME_2012
from easybuild.easyblocks.generic.intelbase import IntelBase
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.config import build_option
from easybuild.tools.filetools import apply_regex_substitutions, change_dir, extract_file, mkdir, write_file
from easybuild.tools.filetools import apply_regex_substitutions, change_dir, extract_file
from easybuild.tools.modules import get_software_root, get_software_version
from easybuild.tools.run import run_shell_cmd
from easybuild.tools.systemtools import get_shared_lib_ext
Expand Down
2 changes: 1 addition & 1 deletion easybuild/easyblocks/i/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import os
from easybuild.tools import LooseVersion

from easybuild.easyblocks.generic.intelbase import IntelBase, ACTIVATION_NAME_2012, LICENSE_FILE_NAME_2012
from easybuild.easyblocks.generic.intelbase import IntelBase


class EB_Inspector(IntelBase):
Expand Down
3 changes: 1 addition & 2 deletions easybuild/easyblocks/t/tbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
from easybuild.tools import LooseVersion

from easybuild.easyblocks.generic.configuremake import ConfigureMake
from easybuild.easyblocks.generic.intelbase import INSTALL_MODE_NAME_2015, INSTALL_MODE_2015
from easybuild.easyblocks.generic.intelbase import IntelBase, ACTIVATION_NAME_2012, LICENSE_FILE_NAME_2012
from easybuild.easyblocks.generic.intelbase import IntelBase
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.filetools import find_glob_pattern, move_file, symlink
from easybuild.tools.build_log import EasyBuildError
Expand Down
2 changes: 1 addition & 1 deletion easybuild/easyblocks/v/vtune.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from easybuild.tools import LooseVersion
import os

from easybuild.easyblocks.generic.intelbase import IntelBase, ACTIVATION_NAME_2012, LICENSE_FILE_NAME_2012
from easybuild.easyblocks.generic.intelbase import IntelBase


class EB_VTune(IntelBase):
Expand Down

0 comments on commit 0d75008

Please sign in to comment.