unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: guix-devel@gnu.org
Subject: [PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from source.
Date: Mon, 10 Oct 2016 15:10:00 +0200	[thread overview]
Message-ID: <1476105003-29538-3-git-send-email-h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <1476105003-29538-1-git-send-email-h.goebel@crazy-compilers.com>

* gnu/packages/python.scm (python-pytest-xdist): Add source 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 f1e9264..345c6a7 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
+           ;; Source archive contains .pyc files
+           (for-each delete-file-recursively
+                     (find-files "." "__pychache__" #: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-10 13:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 13:09 [PATCH 0/5] Some simple or even trivial changes Hartmut Goebel
2016-10-10 13:09 ` [PATCH 1/5] gnu: python2-pytest-runner: Remove duplicate definition Hartmut Goebel
2016-10-12 15:53   ` Leo Famulari
2016-10-12 20:10   ` More duplicate package definitions Danny Milosavljevic
2016-10-13 13:17     ` Hartmut Goebel
2016-10-13 22:39       ` Leo Famulari
2016-10-14 11:10         ` Ricardo Wurmus
2016-10-10 13:10 ` Hartmut Goebel [this message]
2016-10-11 20:24   ` [PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from source Danny Milosavljevic
2016-10-12 15:56   ` Leo Famulari
2016-10-10 13:10 ` [PATCH 3/5] gnu: python-zope-testing: Strip byte-code and garbage " Hartmut Goebel
2016-10-12 15:59   ` Leo Famulari
2016-10-10 13:10 ` [PATCH 4/5] gnu: python.scm: Update some home-page urls and descriptions Hartmut Goebel
2016-10-12 16:01   ` Leo Famulari
2016-10-13  8:36     ` Hartmut Goebel
2016-10-13 20:14       ` Ludovic Courtès
2016-10-14  8:03         ` Hartmut Goebel
2016-10-10 13:10 ` [PATCH 5/5] guix: python-build-system: Fix an outdated comment Hartmut Goebel
2016-10-12 16:03   ` Leo Famulari
2016-10-13  7:32     ` Hartmut Goebel
2016-10-13 20:06       ` 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=1476105003-29538-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 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).