easybuild.tools.repository.filerepo module¶
Repository tools
Plain filesystem repository
Authors:
- Stijn De Weirdt (Ghent University)
- Dries Verdegem (Ghent University)
- Kenneth Hoste (Ghent University)
- Pieter De Baets (Ghent University)
- Jens Timmerman (Ghent University)
- Toon Willems (Ghent University)
- Ward Poelmans (Ghent University)
- Fotis Georgatos (Uni.Lu, NTUA)
-
class
easybuild.tools.repository.filerepo.FileRepository(repo_path, subdir='')¶ Bases:
easybuild.tools.repository.repository.RepositoryClass 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
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, name)¶ Add patch file to repository
Parameters: - patch – location of patch file
- name – software name
Returns: location of archived patch
-
create_working_copy()¶ set the working directory to the repo directory
-
get_buildstats(name, ec_version)¶ return the build statistics
-
setup_repo()¶ for file based repos this will create the repo directory if it doesn’t exist.
if a subdir is specified also create the subdir
-