[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/49: gnu: Python: Remove trailing #t's.
From: |
guix-commits |
Subject: |
12/49: gnu: Python: Remove trailing #t's. |
Date: |
Fri, 23 Jul 2021 11:33:04 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 790a8a8e187b792a3edb1e34b49b82de4f2fd27e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Jul 15 13:34:24 2021 +0200
gnu: Python: Remove trailing #t's.
* gnu/packages/python.scm (python-2.7)[source, arguments]: Remove trailing
#t's.
(wrap-python3)[arguments]: Likewise.
---
gnu/packages/python.scm | 30 ++++++++++--------------------
1 file changed, 10 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b5cc258..74af5b3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -174,8 +174,7 @@
"Lib/test/test_import.py"
"Lib/test/test_shutil.py"
"Lib/test/test_socket.py"
- "Lib/test/test_subprocess.py"))
- #t))))
+ "Lib/test/test_subprocess.py"))))))
(outputs '("out"
"tk" ;tkinter; adds 50 MiB to the closure
"idle")) ;programming environment; weighs 5MB
@@ -243,15 +242,13 @@
"Lib/distutils/tests/test_spawn.py"
"Lib/test/support/__init__.py"
"Lib/test/test_subprocess.py"))
- (("/bin/sh") (which "sh")))
- #t))
+ (("/bin/sh") (which "sh")))))
,@(if (hurd-system?)
`((add-before 'build 'patch-regen-for-hurd
(lambda* (#:key inputs #:allow-other-keys)
(let ((libc (assoc-ref inputs "libc")))
(substitute* "Lib/plat-generic/regen"
- (("/usr/include/") (string-append libc "/include/")))
- #t))))
+ (("/usr/include/") (string-append libc
"/include/")))))))
'())
(add-before 'configure 'do-not-record-configure-flags
(lambda* (#:key configure-flags #:allow-other-keys)
@@ -267,13 +264,11 @@
(format #f "CONFIG_ARGS='~a'\n"
(if (member "--with-system-ffi" configure-flags)
"--with-system-ffi"
- ""))))
- #t))
+ ""))))))
(add-before 'check 'pre-check
(lambda _
;; 'Lib/test/test_site.py' needs a valid $HOME
- (setenv "HOME" (getcwd))
- #t))
+ (setenv "HOME" (getcwd))))
(add-after 'unpack 'set-source-file-times-to-1980
;; XXX One of the tests uses a ZIP library to pack up some of the
;; source tree, and fails with "ZIP does not support timestamps
@@ -283,8 +278,7 @@
(let ((circa-1980 (* 10 366 24 60 60)))
(ftw "." (lambda (file stat flag)
(utime file circa-1980 circa-1980)
- #t))
- #t)))
+ #t)))))
(add-after 'install 'remove-tests
;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
;; because these files are used by some libraries out there.
@@ -339,8 +333,7 @@
;; Python 2 has a single file extension (.pyo) for the chosen
;; level of optimization, so it doesn't make sense to byte
;; compile with more than one level.
- (list '() '("-OO")))
- #t)))
+ (list '() '("-OO"))))))
(add-after 'install 'move-tk-inter
(lambda* (#:key outputs #:allow-other-keys)
;; When Tkinter support is built move it to a separate output so
@@ -360,8 +353,7 @@
len)
"/site-packages")))
(install-file tkinter.so target)
- (delete-file tkinter.so)))))
- #t)))
+ (delete-file tkinter.so))))))))
(add-after 'install 'move-idle
(lambda* (#:key outputs #:allow-other-keys)
;; when idle is built, move it to a separate output to save some
@@ -460,8 +452,7 @@ data types.")
(("^#pyexpat.*") "pyexpat pyexpat.c -lexpat\n"))
;; Delete windows binaries
(for-each delete-file
- (find-files "Lib/distutils/command" "\\.exe$"))
- #t))))
+ (find-files "Lib/distutils/command" "\\.exe$"))))))
(arguments
(substitute-keyword-arguments (package-arguments python-2)
((#:make-flags _)
@@ -658,8 +649,7 @@ for more information.")))
(lambda ()
(format #t "#!~a~%" bash)
(format #t "exec \"~a\" \"$@\"~%" old)
- (chmod new #o755)
- #t)))))))
+ (chmod new #o755))))))))
(synopsis "Wrapper for the Python 3 commands")
(description
"This package provides wrappers for the commands of Python@tie{}3.x such
- branch core-updates updated (3f7efaa -> 71ec85b), guix-commits, 2021/07/23
- 02/49: gnu: pcre2: Update to 10.37., guix-commits, 2021/07/23
- 01/49: gnu: pcre: Update to 8.45., guix-commits, 2021/07/23
- 04/49: gnu: gdbm: Update to 1.20., guix-commits, 2021/07/23
- 09/49: gnu: gsettings-desktop-schemas: Remove unused input., guix-commits, 2021/07/23
- 03/49: gnu: readline: Update to 8.1.1., guix-commits, 2021/07/23
- 05/49: gnu: gsl: Update to 2.7., guix-commits, 2021/07/23
- 07/49: gnu: gamin: Remove unused input., guix-commits, 2021/07/23
- 06/49: gnu: glib: Remove unused input., guix-commits, 2021/07/23
- 08/49: gnu: gnome-backgrounds: Remove unused input., guix-commits, 2021/07/23
- 12/49: gnu: Python: Remove trailing #t's.,
guix-commits <=
- 13/49: gnu: glibc: Remove obsolete patch., guix-commits, 2021/07/23
- 14/49: gnu: commencement: Decouple python-boot0 from python., guix-commits, 2021/07/23
- 15/49: gnu: tzdata-for-tests: Update to 2021a., guix-commits, 2021/07/23
- 11/49: gnu: Python: Update to 3.9.6., guix-commits, 2021/07/23
- 17/49: gnu: RHash: Update to 1.4.2., guix-commits, 2021/07/23
- 20/49: gnu: coreutils-minimal: Do not build documentation., guix-commits, 2021/07/23
- 21/49: gnu: Perl: Resolve TODO., guix-commits, 2021/07/23
- 22/49: build-system/cmake: Define '%build-inputs' when cross-compiling., guix-commits, 2021/07/23
- 23/49: gnu: nghttp2: Update to 1.44.0., guix-commits, 2021/07/23
- 10/49: gnu: glib-networking: Remove unused input., guix-commits, 2021/07/23