easybuild.tools.repository.repository module

Generic support for dealing with repositories

author:Stijn De Weirdt (Ghent University)
author:Dries Verdegem (Ghent University)
author:Kenneth Hoste (Ghent University)
author:Pieter De Baets (Ghent University)
author:Jens Timmerman (Ghent University)
author:Toon Willems (Ghent University)
author:Ward Poelmans (Ghent University)
author:Fotis Georgatos (Uni.Lu, NTUA)
class easybuild.tools.repository.repository.Repository(repo_path, subdir='')

Bases: object

Interface for repositories

DESCRIPTION = None
USABLE = True
add_easyconfig(cfg, name, version, stats, previous)

Add easyconfig to repository

Parameters:
  • cfg – location of easyconfig file
  • name – software name
  • version – software install version, incl. toolchain & versionsuffix
  • stats – build stats, to add to archived easyconfig
  • previous – list of previous build stats
Returns:

location of archived easyconfig

add_patch(patch)

Add patch file to repository

Parameters:
  • patch – location of patch file
  • name – software name
Returns:

location of archived patch

cleanup()

Clean up working copy.

commit(msg=None)

Commit working copy - add msg - add more info to msg

create_working_copy()

Create working copy.

get_buildstats(name, ec_version)

Get the build statististics for software with name and easyconfig version

init()

Prepare repository for use.

is_initialized()

Indicate whether repository was initialized.

setup_repo()

Set up repository.

stage_file(path)

Stage file at specified location in repository for commit

Parameters:path – location of file to stage
easybuild.tools.repository.repository.avail_repositories(check_useable=True)
Return all available repositories.
check_useable: boolean, if True, only return usable repositories
easybuild.tools.repository.repository.init_repository(repository, repository_path)

Return an instance of the selected repository class.