From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel 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 Message-ID: <1476351811-31727-3-git-send-email-h.goebel@crazy-compilers.com> References: <1476351811-31727-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bucYA-00080P-8c for guix-devel@gnu.org; Thu, 13 Oct 2016 05:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bucY5-00083R-SS for guix-devel@gnu.org; Thu, 13 Oct 2016 05:43:41 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:41567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bucY5-000834-Lr for guix-devel@gnu.org; Thu, 13 Oct 2016 05:43:37 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3svm551F4Kz3hjHS for ; Thu, 13 Oct 2016 11:43:37 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3svm550xLGzvkc6 for ; Thu, 13 Oct 2016 11:43:37 +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 2pgdj4-Tf7ml for ; Thu, 13 Oct 2016 11:43:36 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-147-199.dynamic.mnet-online.de [188.174.147.199]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Thu, 13 Oct 2016 11:43:36 +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 170FA60762 for ; Thu, 13 Oct 2016 11:43:32 +0200 (CEST) In-Reply-To: <1476351811-31727-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, 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