From 1f296569f34e7600fd121a6e20ca51db10263d8e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Sep 2023 09:56:42 +0530 Subject: [PATCH] Use a timestamp of now rather than 0 for the sdist tarball --- setup/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/install.py b/setup/install.py index b3854ec36c..3691565309 100644 --- a/setup/install.py +++ b/setup/install.py @@ -339,7 +339,7 @@ class Sdist(Command): self.info('\tCreating tarfile...') dest = self.DEST.rpartition('.')[0] shutil.rmtree(os.path.join(tdir, '.github')) - subprocess.check_call(['tar', '--mtime=@0', '-cf', self.a(dest), 'calibre-%s' % __version__], cwd=self.d(tdir)) + subprocess.check_call(['tar', '--mtime=now', '-cf', self.a(dest), 'calibre-%s' % __version__], cwd=self.d(tdir)) self.info('\tCompressing tarfile...') if os.path.exists(self.a(self.DEST)): os.remove(self.a(self.DEST))