[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
45/49: gnu: Python: Do not embed timestamps in wheel files.
From: |
guix-commits |
Subject: |
45/49: gnu: Python: Do not embed timestamps in wheel files. |
Date: |
Fri, 23 Jul 2021 11:33:14 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit ea562aba69d8ef8599abdaf2505e3f1f7ecf4d28
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Jul 21 23:54:10 2021 +0200
gnu: Python: Do not embed timestamps in wheel files.
* gnu/packages/python.scm (python-3.9)[arguments]: Reset timestamps before
zipping wheels. While at it, remove redundant regex argument.
---
gnu/packages/python.scm | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 74af5b3..0ec7902 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016 David Craven <david@craven.ch>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke
<marius@gnu.org>
;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016, 2017 Alex Vong <alexvong1995@gmail.com>
@@ -502,7 +502,8 @@ data types.")
;; Delete .exe from embedded .whl (zip) files
(for-each
(lambda (whl)
- (let ((dir "whl-content"))
+ (let ((dir "whl-content")
+ (circa-1980 (* 10 366 24 60 60)))
(mkdir-p dir)
(with-directory-excursion dir
(let ((whl (string-append "../" whl)))
@@ -510,8 +511,13 @@ data types.")
(for-each delete-file
(find-files "." "\\.exe$"))
(delete-file whl)
+ ;; Reset timestamps to prevent them from ending
+ ;; up in the Zip archive.
+ (ftw "." (lambda (file stat flag)
+ (utime file circa-1980 circa-1980)
+ #t))
(apply invoke "zip" "-X" whl
- (find-files "." ".*" #:directories? #t))))
+ (find-files "." #:directories? #t))))
(delete-file-recursively dir)))
(find-files "Lib/ensurepip" "\\.whl$"))))
(add-before 'check 'set-TZDIR
- 31/49: gnu: harfbuzz: Update to 2.8.2., (continued)
- 31/49: gnu: harfbuzz: Update to 2.8.2., guix-commits, 2021/07/23
- 32/49: gnu: pango: Update to 1.48.7., guix-commits, 2021/07/23
- 35/49: gnu: sqlite: Update to 3.36.0., guix-commits, 2021/07/23
- 36/49: gnu: libtiff: Update to 4.3.0., guix-commits, 2021/07/23
- 37/49: gnu: libxml2: Update to 2.9.12., guix-commits, 2021/07/23
- 41/49: gnu: perl-test-needs: Update to 0.002009., guix-commits, 2021/07/23
- 42/49: gnu: graphviz: Turn arguments into a gexp., guix-commits, 2021/07/23
- 46/49: gnu: Python: Fix bytecode compilation., guix-commits, 2021/07/23
- 47/49: gnu: Python: Delete existing compiled files before compiling bytecode., guix-commits, 2021/07/23
- 49/49: gnu: Python: Disable indeterministic optimizations., guix-commits, 2021/07/23
- 45/49: gnu: Python: Do not embed timestamps in wheel files.,
guix-commits <=
- 48/49: gnu: Python: Compile bytecode in all outputs., guix-commits, 2021/07/23
- 40/49: gnu: libcap: Update to 2.51., guix-commits, 2021/07/23
- 43/49: gnu: graphviz: Don't hard code Guile version., guix-commits, 2021/07/23
- 39/49: gnu: libksba: Update to 1.6.0., guix-commits, 2021/07/23
- 44/49: gnu: graphviz: Update to 2.48.0., guix-commits, 2021/07/23