-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from pneerincx/new/cluster-utils
Added new cluster-utils/v23.04.1.
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name = 'cluster-utils' | ||
version = 'v23.04.1' | ||
|
||
homepage = 'https://github.com/molgenis/cluster-utils/' | ||
description = """Utilities for cluster users.""" | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '11.3.0'} | ||
easyblock = 'CmdCp' | ||
|
||
# | ||
# Example URL: | ||
# https://github.com/molgenis/cluster-utils/archive/v15.06.1.tar.gz | ||
# | ||
source_urls = [('http://github.com/molgenis/%s/archive/' % (name))] | ||
sources = [('%s.tar.gz' % (version))] | ||
checksums = ['8af8d2e2ef2969852b34bebac9676fa41e4d5ba575fa209b3463ba9c5d04177e'] | ||
|
||
# | ||
# Deps. | ||
# | ||
dependencies = [ | ||
('ncurses', '6.3'), # For ctop. | ||
('Curses', '1.41', '-Perl-5.34.1') # For ctop. | ||
] | ||
|
||
keepsymlinks = True | ||
|
||
# | ||
# Install 'apps' and README.md. | ||
# | ||
files_to_copy = [ | ||
'README.md', | ||
(['bin/*'], 'bin/') | ||
] | ||
|
||
# | ||
# We don't really need a command to install, | ||
# but as we have to have one in order to recycle the CmdCp easyblock... just ls. | ||
# | ||
cmds_map = [('.*', "ls -ahl %(source)s")] | ||
|
||
# | ||
# Make scripts executable. | ||
# (Mode may by masked by umask.) | ||
# And remove tools we don't need or won't work on our HPC sites. | ||
# | ||
postinstallcmds = [ | ||
'for executable in $(ls -1 %(installdir)s/bin/* 2> /dev/null); do chmod 775 ${executable}; done', | ||
'chmod -R g+rwX,o+rX,o-w %(installdir)s/*', | ||
'rm %(installdir)s/bin/ctop-pbs', | ||
'rm %(installdir)s/bin/sjload*', | ||
'rm %(installdir)s/bin/hpc-environment*', | ||
] | ||
|
||
# | ||
# Sanity checking. | ||
# | ||
local_executables = [ | ||
'caccounts', | ||
'cfinger', | ||
'cnodes', | ||
'cprio', | ||
'cps', | ||
'cqos', | ||
'cqueue', | ||
'cshare', | ||
'ctop-slurm', 'ctop', | ||
'colleagues', | ||
'quota', | ||
#'hpc-environment-quota-report-for-PFS', | ||
#'hpc-environment-slurm-report', | ||
'sjeff', | ||
] | ||
sanity_check_paths = { | ||
'files': ['README.md'] + ['bin/%s' % x for x in local_executables], | ||
'dirs': ['bin'] | ||
} | ||
sanity_check_commands = [('quota', '-h')] | ||
|
||
moduleclass = 'tools' |