easybuild.tools.repository.filerepo module

Repository tools

Plain filesystem repository

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.filerepo.FileRepository(repo_path, subdir='')

Bases: easybuild.tools.repository.repository.Repository

Class for file repositories.

DESCRIPTION = 'A plain flat file repository. The 1st argument contains the directory where the files are stored. The optional 2nd argument is a subdir in that path.'
add_easyconfig(cfg, name, version, stats, previous)

Add easyconfig to repository

  • 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

location of archived easyconfig

add_patch(patch, name)

Add patch file to repository

  • patch – location of patch file
  • name – software name

location of archived patch


set the working directory to the repo directory

get_buildstats(name, ec_version)

return the build statistics


for file based repos this will create the repo directory if it doesn’t exist.

if a subdir is specified also create the subdir