easybuild-framework
easybuild-framework copied to clipboard
improve portability of reproducible tarballs by replacing external tar command with tarfile module
fixes #4657
- ~~use more portable
--dateargument fortouch~~ - ~~catch failed commands inside the pipeline~~
- ~~move generation of command to make reproducible archives intro its own method~~
- ~~replace harcoded pattern in tests of reproducible archives command for call to
filetools.reproducible_archive_cmd~~ - make new implementation of
reproducible_archive_cmdusing thetarfilemodule - added new
filetools.make_archive()method and related unit test - change handling of
filenameargument infiletools.get_source_tarball_from_git()to expect filenames without extension- archive extension is appended as needed by
make_archive() - known archive extensions are automatically removed from filename if it contains one
- archive extension is appended as needed by
- add
requiredargument tofiletools.find_extensions()