From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: Building from a local source code checkout Date: Wed, 20 Dec 2017 09:52:37 +0100 Message-ID: References: <87tvwm1vxa.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRa7D-0001Qs-3A for guix-devel@gnu.org; Wed, 20 Dec 2017 03:52:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRa79-0007M5-PM for guix-devel@gnu.org; Wed, 20 Dec 2017 03:52:39 -0500 In-Reply-To: <87tvwm1vxa.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Hi Ludo, >> For debugging package definitions, it would be really nice to be able >> to build a package from a checkout of the original project source >> code, rather than having to make a tarball for each modification of >> that source code. Is this possible somehow? > > You should be able to use =E2=80=9Cguix build foo --with-source=3D./foo= =E2=80=9D (note > that the directory name must match the package name). > > https://www.gnu.org/software/guix/manual/html_node/Package-Transformati= on-Options.html The name matching condition is my problem with this approach, which is why I was looking for a way to do specify a local source in the package definition itself. I am working in the Python universe where package names almost never match the name of the checkout directory because of the python- prefix. Moreover, I want to build both python- and python2- packages from my checkout. >> The manual suggests that a package source could be something else than >> an origin object, such as a local-file, but I cannot get even >> local-file to work. > > It should work (you must import (guix gexp) to get =E2=80=98local-file=E2= =80=99). > > Can you share what errors you got? None - once I import (guix gexp) ;-) Thanks, Konrad.