From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 3/5] gnu: python-zope-testing: Strip byte-code and garbage from source. Date: Mon, 10 Oct 2016 15:10:01 +0200 Message-ID: <1476105003-29538-4-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]:55046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btaLM-0007Vz-UA for guix-devel@gnu.org; Mon, 10 Oct 2016 09:10:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btaLL-0007M2-VC for guix-devel@gnu.org; Mon, 10 Oct 2016 09:10:12 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:52860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btaLL-0007Lj-OG for guix-devel@gnu.org; Mon, 10 Oct 2016 09:10:11 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3st0pq2fPYz3hjRg for ; Mon, 10 Oct 2016 15:10:11 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3st0pq256lzvkVN for ; Mon, 10 Oct 2016 15:10:11 +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 rCPLMiuFz71m for ; Mon, 10 Oct 2016 15:10:10 +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:10 +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 B60216131A 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/package/python.scm (python-zope-testing): Add snippet to strip byte-code and garbage from source. --- gnu/packages/python.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 345c6a7..a289093 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6647,7 +6647,13 @@ that have uses outside of the Zope framework.") "/zope.testing/zope.testing-" version ".tar.gz")) (sha256 (base32 - "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")))) + "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Source contains .pyc files and some garbage + (for-each delete-file (find-files "." "(\\.pyc|~)$")) + #t)))) (build-system python-build-system) (native-inputs `(("python-zope-exceptions" ,python-zope-exceptions))) -- 2.7.4