all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: guix-devel@gnu.org
Subject: [PATCH v2 2/7] gnu: python-pytest-xdist: Remove pre-compiled .pyc files from source.
Date: Thu, 13 Oct 2016 11:43:26 +0200	[thread overview]
Message-ID: <1476351811-31727-3-git-send-email-h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <1476351811-31727-1-git-send-email-h.goebel@crazy-compilers.com>

* gnu/packages/python.scm (python-pytest-xdist,
  python2-pytest-xdist)[source]: Add snippet.
---
 gnu/packages/python.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3c3a00c..eca60bc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1764,7 +1764,15 @@ same arguments.")
        (uri (pypi-uri "pytest-xdist" version ".zip"))
        (sha256
         (base32
-         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
+         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Remove pre-compiled .pyc files from source.
+           (for-each delete-file-recursively
+                     (find-files "." "__pycache__" #:directories? #t))
+           (for-each delete-file (find-files "." "\\.pyc$"))
+           #t))))
     (build-system python-build-system)
     (native-inputs
      `(("unzip" ,unzip)
-- 
2.7.4

  parent reply	other threads:[~2016-10-13  9:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13  9:43 [PATCH v2 0/7] Updated: Some simple or even trivial changes Hartmut Goebel
2016-10-13  9:43 ` [PATCH v2 1/7] gnu: python2-pytest-runner, python2-msgpack: Remove duplicate definitions Hartmut Goebel
2016-10-13  9:43 ` Hartmut Goebel [this message]
2016-10-13  9:43 ` [PATCH v2 3/7] gnu: python-zope-testing: Strip byte-code and backup-files from source Hartmut Goebel
2016-10-13  9:43 ` [PATCH v2 4/7] gnu: python-pylockfile: Update home-page url Hartmut Goebel
2016-10-13  9:43 ` [PATCH v2 5/7] gnu: python-keyring: " Hartmut Goebel
2016-10-13  9:43 ` [PATCH v2 6/7] gnu: python-pathlib: Update description Hartmut Goebel
2016-10-13  9:43 ` [PATCH v2 7/7] guix: python-build-system: Fix an outdated comment Hartmut Goebel
2016-10-13 13:27 ` [PATCH v2 0/7] Updated: Some simple or even trivial changes Danny Milosavljevic
2016-10-13 15:34   ` Hartmut Goebel

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476351811-31727-3-git-send-email-h.goebel@crazy-compilers.com \
    --to=h.goebel@crazy-compilers.com \
    --cc=guix-devel@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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.