Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{2023.06}[foss/2022a] Python-bare V2.7.18 #209

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,16 @@ def parse_hook_pillow_set_cpath_library_path(ec, eprefix):
os.environ['LIBRARY_PATH'] = os.pathsep.join(filter(None,[os.environ.get('LIBRARY_PATH',''), EESSI_LIB_PATH]))



def parse_hook_python_bare_set_LANG(ec, eprefix):
"""Set the LANG variable to en_DK.UTF-8 in case it was empty."""
if ec.name == 'Python' and ec.version =='2.7.18' and os.getenv('LANG') is None:
print_msg("NOTE: The environment variable: LANG will be set to en_DK.UTF-8")
ec.log.info("NOTE: The environment variable: LANG will be set to en_DK.UTF-8")
os.environ['LANG'] = 'en_DK.UTF-8'
print_msg("NOTE: The environment variable: LANG is set to %s", os.getenv('LANG'))


def parse_hook_ucx_eprefix(ec, eprefix):
"""Make UCX aware of compatibility layer via additional configuration options."""
if ec.name == 'UCX':
Expand Down Expand Up @@ -290,6 +300,7 @@ def pre_test_hook_ignore_failing_tests_SciPybundle(self, *args, **kwargs):
'fontconfig': parse_hook_fontconfig_add_fonts,
'OpenBLAS': parse_hook_openblas_relax_lapack_tests_num_errors,
'Pillow': parse_hook_pillow_set_cpath_library_path,
'Python': parse_hook_python_bare_set_LANG,
'UCX': parse_hook_ucx_eprefix,
}

Expand Down
1 change: 1 addition & 0 deletions eessi-2023.06-eb-4.8.1-2022a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ easyconfigs:
# Uses a custom hook since has zlib as dependency which has hard coded header and library path within Pillow code.
options:
from-pr: 18881
- Python-2.7.18-GCCcore-11.3.0-bare.eb