Skip to content

[parallel] [package list]

parallel/20231022 (parallel-20231022.eb)

To access module help and find out for which stacks and partitions the module is installed, use module spider parallel/20231022.

EasyConfig:

easyblock = 'ConfigureMake'

local_parallel_version =         '20231022'      # https://ftp.gnu.org/gnu/parallel/

name =    'parallel'
version = local_parallel_version

homepage = 'http://savannah.gnu.org/projects/parallel/'

whatis = [
    'Description: parallel: Build and execute shell commands in parallel'
]

description = """
GNU parallel is a shell tool for executing jobs in parallel using one or more 
computers. A job can be a single command or a small script that has to be run 
for each of the lines in the input. The typical input is a list of files, a 
list of hosts, a list of users, a list of URLs, or a list of tables. A job 
can also be a command that reads from a pipe. GNU parallel can then split the i
nput and pipe it into commands in parallel.
If you use xargs and tee today you will find GNU parallel very easy to use as 
GNU parallel is written to have the same options as xargs. If you write loops in 
shell, you will find GNU parallel may be able to replace most of the loops and 
make them run faster by running several jobs in parallel.
GNU parallel makes sure output from the commands is the same output as you would 
get had you run the commands sequentially. This makes it possible to use output 
from GNU parallel as input for other programs.
For each line of input GNU parallel will execute command with the line as 
arguments. If no command is given, the line of input is executed. Several lines 
will be run in parallel. GNU parallel can often be used as a substitute for xargs 
or cat | bash.

The version of parallel uses the system perl binaries with the path hard-coded
in the shebang lines of the scripts to avoid interference with other Perl
modules that might be loaded.
"""

docurls = [
    'Additional information on https://www.gnu.org/software/parallel',
    'Tutorial on https://www.gnu.org/software/parallel/parallel_tutorial.html',
    'On-line man page at https://www.gnu.org/software/parallel/man.html',
    'Man pages on the system for parallel, parcat, parset, parsort, sem, sql, niceload, env_parallel',
]

toolchain = SYSTEM

sources =     [SOURCELOWER_TAR_BZ2]
source_urls = [GNU_SOURCE]
checksums =   ['93f2b94f1850798a4b5dda22bdae86dab6a6565e3525860e08e46f2563f3268c']

osdependencies = [
    ('perl')
]

postinstallcmds = [
    'cd %(installdir)s/bin && sed -i -e \'s|#!/usr/bin/env perl|#!/usr/bin/perl|\' parallel',
    'mkdir -p %(installdir)s/share/licenses/%(name)s && cp CITATION NEWS LICENSES/* %(installdir)s/share/licenses/%(name)s',
]

sanity_check_paths = {
    'files': ['bin/parallel'],
    'dirs':  []
}

# Note that some of these commands actually complain about unknown versions 
# but nicely print some text and then return error code 0 so have some value
# as a test.
sanity_check_commands = [ # Note that some of these commands actually complain about unknown versions but ret
    'parallel --version',
    'sem --version',
    'parsort --version',
    'sql --version',
    # The next two are dubious as they don't know --version yet return error code 0.
    'parset --version',
    'env_parallel --version',
]

moduleclass = 'tools'

[parallel] [package list]