<commit_before>#!/bin/bash
codes_dependencies mpi4py Forthon h5py pygist
# May only be needed for diags in warp init warp_script.py
pip install python-dateutil
prev_pwd=$PWD
codes_download https://bitbucket.org/berkeleylab/warp.git
cd pywarp90
make clean install
cat > setup.local.py <<'EOF'
if parallel:
    import os, re
    r = re.compile('^-l(.+)', flags=re.IGNORECASE)
    for x in os.popen('mpifort --showme:link').read().split():
        m = r.match(x)
        if m:
            l = library_dirs if x[1] == 'L' else libraries
            l.append(m.group(1))
EOF
make FCOMP='-F gfortran --fcompexec mpifort' pclean pinstall
cd "$prev_pwd"
codes_download https://depot.radiasoft.org/foss/warp-initialization-tools-20160204.tar.gz
python setup.py install<commit_msg>need to set rpath in link so ldd knows where to find mpi libs<commit_after>#!/bin/bash
codes_dependencies mpi4py Forthon h5py pygist
# May only be needed for diags in warp init warp_script.py
pip install python-dateutil
prev_pwd=$PWD
codes_download https://bitbucket.org/berkeleylab/warp.git
cd pywarp90
make clean install
cat > setup.local.py <<'EOF'
if parallel:
    import os, re
    r = re.compile('^-l(.+)', flags=re.IGNORECASE)
    for x in os.popen('mpifort --showme:link').read().split():
        m = r.match(x)
        if not m:
            continue
        arg = m.group(1)
        if x[1] == 'L':
             library_dirs.append(arg)
             extra_link_args += ['-Wl,-rpath', '-Wl,' + arg]
        else:
             libraries.append(arg)
EOF
make FCOMP='-F gfortran --fcompexec mpifort' pclean pinstall
cd "$prev_pwd"
codes_download https://depot.radiasoft.org/foss/warp-initialization-tools-20160204.tar.gz
python setup.py install
{'fraction_non_alphanumeric': 0.12558139534883722, 'fraction_numerical': 0.01627906976744186, 'mean_word_length': 3.2078239608801957, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3287184', 'n_tokens_mistral': 636, 'n_tokens_neox': 612, 'n_words': 158}