From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Python 3 binaries Date: Sun, 01 Sep 2013 16:03:47 +0200 Message-ID: <87d2osoczg.fsf@gnu.org> References: <20130831153018.GA5442@debian> <5222282D.7000801@gmail.com> <20130901092817.GA19604@debian> 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]:44091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VG8Kw-000346-4h for guix-devel@gnu.org; Sun, 01 Sep 2013 10:09:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VG8Kp-0002tZ-Vu for guix-devel@gnu.org; Sun, 01 Sep 2013 10:09:06 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:58866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VG8Kp-0002tR-Pf for guix-devel@gnu.org; Sun, 01 Sep 2013 10:08:59 -0400 In-Reply-To: <20130901092817.GA19604@debian> (Andreas Enge's message of "Sun, 1 Sep 2013 11:28:17 +0200") List-Id: 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > Very well. If we do not wish to make the symlink python->python3, > then we will need special code in patch-shebangs, so that things like > "#!/usr/bin/python" may get rewritten to > "#!/nix/store/...python-3.3.2/bin/python3" if no binary named "python" > is found. Ah, so packages that work with Python 3 expect a =E2=80=98python=E2=80=99 (= and not =E2=80=98python3=E2=80=99) executable? Then that=E2=80=99s a different story (I thought =E2=80=98python3=E2=80=99 = was the official name for the binary.) I=E2=80=99d rather not have specific things like that in =E2=80=98patch-she= bangs=E2=80=99. So, what we could do is: =E2=80=A2 Leave =E2=80=98python-3=E2=80=99 as is, without the symlink. =E2=80=A2 Add a =E2=80=98python-3-wrapper=E2=80=99 package that just cont= ains =E2=80=98bin/python=E2=80=99 pointing to =E2=80=98=E2=80=A6/bin/python3=E2=80=99 (using =E2=80=98tri= vial-build-system=E2=80=99.) =E2=80=A2 When building Python 3 packages, we=E2=80=99d use the wrapper, = not the real one; however, users would install the real one in their environment. WDYT? Ludo=E2=80=99.