Skip to content

Commit b0a95b2

Browse files
committed
rename %(rpath)s template to %(rpath_enabled)s
1 parent 348a30e commit b0a95b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

easybuild/framework/easyconfig/templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
('cuda_sm_space_sep', "Space-separated list of sm_* values that correspond with CUDA compute capabilities"),
102102
('mpi_cmd_prefix', "Prefix command for running MPI programs (with default number of ranks)"),
103103
# can't be a boolean (True/False), must be a string value since it's a string template
104-
('rpath', "String value indicating whether or not RPATH linking is used ('true' or 'false')"),
104+
('rpath_enabled', "String value indicating whether or not RPATH linking is used ('true' or 'false')"),
105105
('software_commit', "Git commit id to use for the software as specified by --software-commit command line option"),
106106
('sysroot', "Location root directory of system, prefix for standard paths like /usr/lib and /usr/include"
107107
"as specified by the --sysroot configuration option"),
@@ -211,7 +211,7 @@ def template_constant_dict(config, ignore=None, skip_lower=None, toolchain=None)
211211
template_values['arch'] = platform.uname()[4]
212212

213213
# set 'rpath' template based on 'rpath' configuration option, using empty string as fallback
214-
template_values['rpath'] = 'true' if build_option('rpath') else 'false'
214+
template_values['rpath_enabled'] = 'true' if build_option('rpath') else 'false'
215215

216216
# set 'sysroot' template based on 'sysroot' configuration option, using empty string as fallback
217217
template_values['sysroot'] = build_option('sysroot') or ''

test/framework/easyconfig.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ def test_rpath_template(self):
14301430

14311431
test_ec = os.path.join(self.test_prefix, 'test.eb')
14321432
test_ec_txt = read_file(toy_ec)
1433-
test_ec_txt += "configopts = '--with-rpath=%(rpath)s'"
1433+
test_ec_txt += "configopts = '--with-rpath=%(rpath_enabled)s'"
14341434
write_file(test_ec, test_ec_txt)
14351435

14361436
ec = EasyConfig(test_ec)
@@ -3400,7 +3400,7 @@ def test_template_constant_dict(self):
34003400
'nameletter': 'g',
34013401
'nameletterlower': 'g',
34023402
'parallel': None,
3403-
'rpath': rpath,
3403+
'rpath_enabled': rpath,
34043404
'software_commit': '',
34053405
'sysroot': '',
34063406
'toolchain_name': 'foss',
@@ -3484,7 +3484,7 @@ def test_template_constant_dict(self):
34843484
'pyminver': '7',
34853485
'pyshortver': '3.7',
34863486
'pyver': '3.7.2',
3487-
'rpath': rpath,
3487+
'rpath_enabled': rpath,
34883488
'software_commit': '',
34893489
'sysroot': '',
34903490
'version': '0.01',
@@ -3551,7 +3551,7 @@ def test_template_constant_dict(self):
35513551
'namelower': 'foo',
35523552
'nameletter': 'f',
35533553
'nameletterlower': 'f',
3554-
'rpath': rpath,
3554+
'rpath_enabled': rpath,
35553555
'software_commit': '',
35563556
'sysroot': '',
35573557
'version': '1.2.3',

0 commit comments

Comments
 (0)