From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from source. Date: Mon, 10 Oct 2016 15:10:00 +0200 Message-ID: <1476105003-29538-3-git-send-email-h.goebel@crazy-compilers.com> References: <1476105003-29538-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btaLO-0007Wv-7K for guix-devel@gnu.org; Mon, 10 Oct 2016 09:10:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btaLK-0007LX-Tz for guix-devel@gnu.org; Mon, 10 Oct 2016 09:10:14 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:58982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btaLK-0007Kr-OE for guix-devel@gnu.org; Mon, 10 Oct 2016 09:10:10 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3st0pp2194z3hkK2 for ; Mon, 10 Oct 2016 15:10:10 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3st0pp0SzLzvkVF for ; Mon, 10 Oct 2016 15:10:10 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id mdxI8usR7j51 for ; Mon, 10 Oct 2016 15:10:08 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-147-59.dynamic.mnet-online.de [188.174.147.59]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 10 Oct 2016 15:10:08 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 9530D60E9A for ; Mon, 10 Oct 2016 15:10:03 +0200 (CEST) In-Reply-To: <1476105003-29538-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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