From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 2/7] gnu: add python-sqlparse and python2-sqlparse Date: Mon, 18 Apr 2016 16:23:46 -0400 Message-ID: <20160418202346.GG26231@jasmine> References: <1460926257-25147-1-git-send-email-h.goebel@crazy-compilers.com> <1460926257-25147-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]:33088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asFhb-00017R-Nl for guix-devel@gnu.org; Mon, 18 Apr 2016 16:23:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asFhY-0005Mh-Fq for guix-devel@gnu.org; Mon, 18 Apr 2016 16:23:23 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asFhY-0005MU-C0 for guix-devel@gnu.org; Mon, 18 Apr 2016 16:23:20 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4321320624 for ; Mon, 18 Apr 2016 16:23:20 -0400 (EDT) Content-Disposition: inline In-Reply-To: <1460926257-25147-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 Sun, Apr 17, 2016 at 10:50:52PM +0200, Hartmut Goebel wrote: > * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse): > New functions. [...] > + (build-system python-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda* _ > + ;; setup.py-integrated 2to3 only affects the build files, but > + ;; py.test is using the source files. So we need to convert them > + ;; manually. > + (if (zero? (system* "python3")) > + (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests") > + #t) Is this running the python3 interpreter with no arguments in order to see if it exists, and then doing 2to3 if it does?