From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from source. Date: Wed, 12 Oct 2016 11:56:51 -0400 Message-ID: <20161012155651.GB31109@jasmine> References: <1476105003-29538-1-git-send-email-h.goebel@crazy-compilers.com> <1476105003-29538-3-git-send-email-h.goebel@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buLtz-0004Q1-Jw for guix-devel@gnu.org; Wed, 12 Oct 2016 11:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buLtt-0006tX-KV for guix-devel@gnu.org; Wed, 12 Oct 2016 11:57:06 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:47680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buLts-0006qS-EJ for guix-devel@gnu.org; Wed, 12 Oct 2016 11:57:01 -0400 Content-Disposition: inline In-Reply-To: <1476105003-29538-3-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: Hartmut Goebel Cc: guix-devel@gnu.org On Mon, Oct 10, 2016 at 03:10:00PM +0200, Hartmut Goebel wrote: > * gnu/packages/python.scm (python-pytest-xdist): Add source snippet. * 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 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 Can you make this comment into a complete sentence? Something like "Remove pre-compiled .pyc files from source."? > + (for-each delete-file-recursively > + (find-files "." "__pychache__" #:directories? #t)) As Danny pointed out, it should probably be "__pycache__". LGTM with these changes.