Skip to content

Commit d9e7682

Browse files
committed
add link TarFile documentation explaining sorting of files
1 parent fb75353 commit d9e7682

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

easybuild/tools/filetools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,6 +2878,7 @@ def reproducible_filter(tarinfo):
28782878

28792879
# TODO: replace with TarFile.add(recursive=True) when support for Python 3.6 drops
28802880
# since Python v3.7 tarfile automatically orders the list of files added to the archive
2881+
# see Tarfile.add documentation: https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.add
28812882
source_files = [source_dir]
28822883
# pathlib's glob includes hidden files
28832884
source_files.extend([str(filepath) for filepath in pathlib.Path(source_dir).glob("**/*")])

0 commit comments

Comments
 (0)