Skip to content

Commit e22fa0b

Browse files
committed
Add option for preferring EBPYTHONPREFIXES
1 parent 5dac63e commit e22fa0b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

easybuild/framework/easyconfig/default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
'patches': [[], "List of patches to apply", BUILD],
115115
'prebuildopts': ['', 'Extra options pre-passed to build command.', BUILD],
116116
'preconfigopts': ['', 'Extra options pre-passed to configure.', BUILD],
117+
'prefer_ebpythonprefixes': [True, "Prefer EBPYTHONPREFIXES over PYTHONPATH when possible.", BUILD],
117118
'preinstallopts': ['', 'Extra prefix options for installation.', BUILD],
118119
'pretestopts': ['', 'Extra prefix options for test.', BUILD],
119120
'postinstallcmds': [[], 'Commands to run after the install step.', BUILD],

easybuild/tools/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ def mk_full_default_path(name, prefix=DEFAULT_PREFIX):
328328
'modules_tool_version_check',
329329
'mpi_tests',
330330
'pre_create_installdir',
331+
'prefer_ebpythonprefixes',
331332
'show_progress_bar',
332333
'trace',
333334
],

easybuild/tools/options.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ def override_options(self):
482482
None, 'store_true', False),
483483
'pre-create-installdir': ("Create installation directory before submitting build jobs",
484484
None, 'store_true', True),
485+
'prefer-ebpythonprefixes': (("Prefer EBPYTHONPREFIXES over PYTHONPATH when possible"),
486+
None, 'store_true', True),
485487
'pretend': (("Does the build/installation in a test directory located in $HOME/easybuildinstall"),
486488
None, 'store_true', False, 'p'),
487489
'read-only-installdir': ("Set read-only permissions on installation directory after installation",

0 commit comments

Comments
 (0)