From: Marius Bakke <mbakke@fastmail.com>
To: 32260@debbugs.gnu.org
Subject: [bug#32260] [PATCH 03/21] gnu: python: Rebuild bytecode after removing tests.
Date: Tue, 24 Jul 2018 14:35:46 +0200 [thread overview]
Message-ID: <20180724123604.29666-4-mbakke@fastmail.com> (raw)
In-Reply-To: <20180724123604.29666-1-mbakke@fastmail.com>
* gnu/packages/python.scm (python-3.7)[arguments]: Run 'rebuild-bytecode'
after 'remove-tests' to save CPU cycles. Adjust exclude regex.
---
gnu/packages/python.scm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dcc8f0921..395258aa9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -358,7 +358,7 @@ data types.")
;; FIXME: Without this phase we have close to 400 files that
;; differ across different builds of this package. With this phase
;; there are 44 files left that differ.
- (add-after 'install 'rebuild-bytecode
+ (add-after 'remove-tests 'rebuild-bytecode
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(for-each
@@ -372,8 +372,7 @@ data types.")
"-m" "compileall"
"-f" ; force rebuild
;; Don't build lib2to3, because it's Python 2 code.
- ;; Also don't build obviously broken test code.
- "-x" "(lib2to3|test/bad.*)"
+ "-x" "lib2to3.*"
,file)))
(find-files out "\\.py$")))
(list '() '("-O") '("-OO")))
--
2.18.0
next prev parent reply other threads:[~2018-07-24 12:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-24 12:33 [bug#32260] [PATCH 00/21] Python updates Marius Bakke
2018-07-24 12:35 ` Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 01/21] gnu: python: Remove outdated comment and phases Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 02/21] gnu: python: Update to 3.7.0 Marius Bakke
2018-07-26 14:24 ` Efraim
2018-07-24 12:35 ` Marius Bakke [this message]
2018-07-24 12:35 ` [bug#32260] [PATCH 04/21] gnu: python: Build reproducibly Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 05/21] gnu: python-py: Add missing dependency on setuptools-scm Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 06/21] gnu: python-py: Update to 1.5.4 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 07/21] gnu: python-py: Update home page Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 08/21] gnu: python-pyflakes: Update to 2.0.0 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 09/21] gnu: python-more-itertools: Update to 4.2.0 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 10/21] gnu: python-pycodestyle: Update to 2.4.0 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 11/21] gnu: python-setuptools: Update to 40.0.0 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 12/21] gnu: python-pytest-runner: Update to 4.2 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 13/21] gnu: python-flake8: Update to 3.5.0 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 14/21] gnu: python-hypothesis: Update to 3.66.6 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 15/21] gnu: python-pytest-cov: Update to 2.5.1 Marius Bakke
2018-07-24 12:35 ` [bug#32260] [PATCH 16/21] gnu: Add python-invoke Marius Bakke
2018-07-24 12:36 ` [bug#32260] [PATCH 17/21] gnu: python-pytest: Update to 3.6.3 Marius Bakke
2018-07-24 12:36 ` [bug#32260] [PATCH 18/21] gnu: python-pytest-mock: Update to 1.10.0 Marius Bakke
2018-07-24 12:36 ` [bug#32260] [PATCH 19/21] gnu: docbook-xsl: Delete bundled jars Marius Bakke
2018-07-24 12:41 ` Marius Bakke
2018-07-24 12:36 ` [bug#32260] [PATCH 20/21] gnu: gdb: Fix build with Python >= 3.7 Marius Bakke
2018-07-24 12:36 ` [bug#32260] [PATCH 21/21] gnu: python-fonttools: Update to 3.28.0 Marius Bakke
2018-07-28 15:40 ` bug#32260: [PATCH 00/21] Python updates Marius Bakke
2018-07-29 13:34 ` [bug#32260] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180724123604.29666-4-mbakke@fastmail.com \
--to=mbakke@fastmail.com \
--cc=32260@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).