easybuild icon indicating copy to clipboard operation
easybuild copied to clipboard

Use files from multiple sources for build

Open sgabenov opened this issue 6 years ago • 1 comments

For some specific builds i may need to combine files from multiple sources into one module. For example https://www.mrc-lmb.cam.ac.uk/kzhang/Gautomatch/Gautomatch_v0.56/ may need all files, that are downloaded from different URLs. Could we have a possibility to specify them like in config options:

sources = []
sources =+ []

Also, could you please add manual for how to use a git repo for a build if there is no possibility to download an archive for a application.

sgabenov avatar Apr 10 '19 14:04 sgabenov

@sgabenov This use case is already supported, and used in various contexts. You can already use sources += [], or just list all sources at once.

Also downloading from different URLs is not a problem, since source_urls can be a list of URLs to download from (they will be tried one by one):

source_urls = [
    'https://example.com/',
    'https://example.com/files/',
]
sources = [
    'file1.tar.gz',
    'file2.tar.gz',
]

This will as expected when you need to pull in https://example.com/file1.tar.gz and https://example.com/files/file2.tar.gz .

W.r.t. downloading from a Git repo, this is already documented at https://easybuild.readthedocs.io/en/latest/Writing_easyconfig_files.html#common-easyconfig-param-sources-git-config .

Please let us know if this answers your questions.

boegel avatar Apr 13 '19 10:04 boegel