From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH v2 3/7] gnu: python-zope-testing: Strip byte-code and backup-files from source. Date: Thu, 13 Oct 2016 11:43:27 +0200 Message-ID: <1476351811-31727-4-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]:42249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bucYD-00083L-HW for guix-devel@gnu.org; Thu, 13 Oct 2016 05:43:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bucYC-00087N-OH for guix-devel@gnu.org; Thu, 13 Oct 2016 05:43:45 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:54496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bucYC-000874-HJ for guix-devel@gnu.org; Thu, 13 Oct 2016 05:43:44 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3svm563W4Qz3hjf1 for ; Thu, 13 Oct 2016 11:43:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3svm563HQ0zvkcF for ; Thu, 13 Oct 2016 11:43:38 +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 uoWKgrk5atTr for ; Thu, 13 Oct 2016 11:43:37 +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:37 +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 2A09C60D09 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/package/python.scm (python-zope-testing, python2-zope-testing)[source]: Add snippet to strip byte-code and backup-files. --- 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 eca60bc..ec56c85 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6644,7 +6644,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 + ;; Remove pre-compiled .pyc files backup files from source. + (for-each delete-file (find-files "." "(\\.pyc|~)$")) + #t)))) (build-system python-build-system) (native-inputs `(("python-zope-exceptions" ,python-zope-exceptions))) -- 2.7.4