|
52 | 52 | from easybuild.framework.easyconfig.format.format import DEPENDENCY_PARAMETERS |
53 | 53 | from easybuild.framework.easyconfig.parser import fetch_parameters_from_easyconfig |
54 | 54 | from easybuild.framework.easyconfig.tools import alt_easyconfig_paths |
| 55 | +from easybuild.toolchains.compiler.systemcompiler import TC_CONSTANT_SYSTEM |
55 | 56 | from easybuild.toolchains.gcccore import GCCcore |
56 | 57 | from easybuild.tools.build_log import EasyBuildError, print_warning |
57 | 58 | from easybuild.tools.config import build_option |
@@ -1091,7 +1092,7 @@ def find_potential_version_mappings(dep, toolchain_mapping, versionsuffix_mappin |
1091 | 1092 | # Figure out the main versionsuffix (altered depending on toolchain in the loop below) |
1092 | 1093 | versionsuffix = dep.get('versionsuffix', '') |
1093 | 1094 | # If versionsuffix is equal to None, it should be put to empty string |
1094 | | - if not versionsuffix: |
| 1095 | + if versionsuffix is None: |
1095 | 1096 | versionsuffix = '' |
1096 | 1097 | # If versionsuffix is in our mapping then we expect it to be updated |
1097 | 1098 | if versionsuffix in versionsuffix_mapping: |
@@ -1141,7 +1142,7 @@ def find_potential_version_mappings(dep, toolchain_mapping, versionsuffix_mappin |
1141 | 1142 | tc_candidate = fetch_parameters_from_easyconfig(read_file(path), ['toolchain'])[0] |
1142 | 1143 | if isinstance(tc_candidate, dict) and tc_candidate['name'] == SYSTEM_TOOLCHAIN_NAME: |
1143 | 1144 | cand_paths_filtered += [path] |
1144 | | - if isinstance(tc_candidate, string_type) and tc_candidate == "SYSTEM": |
| 1145 | + if isinstance(tc_candidate, string_type) and tc_candidate == TC_CONSTANT_SYSTEM: |
1145 | 1146 | cand_paths_filtered += [path] |
1146 | 1147 |
|
1147 | 1148 | cand_paths = cand_paths_filtered |
|
0 commit comments