From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brandon Invergo Subject: Re: Python 3 binaries Date: Sun, 01 Sep 2013 10:20:18 +0200 Message-ID: <8738ppnebh.fsf@naga.invergo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VG2th-00059Z-Im for guix-devel@gnu.org; Sun, 01 Sep 2013 04:20:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VG2tb-0003Ds-I1 for guix-devel@gnu.org; Sun, 01 Sep 2013 04:20:37 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VG2tb-0003Dl-By for guix-devel@gnu.org; Sun, 01 Sep 2013 04:20:31 -0400 Received: from [95.61.26.193] (port=55418 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VG2ta-0001ZT-Pm for guix-devel@gnu.org; Sun, 01 Sep 2013 04:20:31 -0400 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: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi everyone, > python 3 does not ship a python binary any more, just a binary called > python3. That could be useful, since it would allow to install python > 2 and 3 side by side. However, all packages relying on a shebang > substitution with a python binary now fail. Here's what it looks like on my Parabola system, which I think is a sane way of doing it (ok, there's no *truly* sane way of doing it): $ ls -l /usr/bin/python* lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/python -> python3 lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/python-config -> python3-c= onfig lrwxrwxrwx 1 root root 1K May 12 18:01 /usr/bin/python2 -> python2.7 lrwxrwxrwx 1 root root 1K May 12 18:01 /usr/bin/python2-config -> python2.= 7-config =2Drwxr-xr-x 1 root root 7K May 12 18:01 /usr/bin/python2.7 =2Drwxr-xr-x 1 root root 2K May 12 18:01 /usr/bin/python2.7-config lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/python3 -> python3.3 lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/python3-config -> python3.= 3-config =2Drwxr-xr-x 2 root root 11K May 21 17:50 /usr/bin/python3.3 lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/python3.3-config -> python= 3.3m-config =2Drwxr-xr-x 2 root root 11K May 21 17:50 /usr/bin/python3.3m =2Drwxr-xr-x 1 root root 2K May 21 17:50 /usr/bin/python3.3m-config $ ls -l /usr/bin/idle* lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/idle -> idle3 =2Drwxr-xr-x 1 root root 1K May 12 18:01 /usr/bin/idle2 lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/idle3 -> idle3.3 =2Drwxr-xr-x 1 root root 1K May 21 17:50 /usr/bin/idle3.3 $ ls -l /usr/bin/pydoc* lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/pydoc -> pydoc3 =2Drwxr-xr-x 1 root root 1K May 12 18:01 /usr/bin/pydoc2 lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/pydoc3 -> pydoc3.3 =2Drwxr-xr-x 1 root root 1K May 21 17:50 /usr/bin/pydoc3.3 $ ls -l /usr/bin/2to3* lrwxrwxrwx 1 root root 1K May 21 17:50 /usr/bin/2to3 -> 2to3-3.3 =2Drwxr-xr-x 1 root root 1K May 12 18:01 /usr/bin/2to3-2.7 =2Drwxr-xr-x 1 root root 1K May 21 17:50 /usr/bin/2to3-3.3 I think Debian is similar, but with Python 2 being the default rather than Python 3. Shebangs are routinely changed in Parabola to accommodate this but since shebangs are also routinely being changed in Guix anyway, this shouldn't be a problem.=20 So, the install scripts will require a bit of post-processing to generate the symlinks and to move around some binaries to avoid conflicts, but I think this is the only thing you can do. Cheers,=20 =2Dbrandon ps - great meeting some of you last week in Paris! =2D-=20 Brandon Invergo http://brandon.invergo.net --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iQEcBAEBAgAGBQJSIvjEAAoJEARu3ubrerdN554H/1+xgZN0Gj3I1t4uEGnanGA+ NqSX652Ebj55UXSQZ+Oo9URQH/jQO2R+D272CbqLY9UJh87YPALJNdGyBes2WqcG g7/s7TiDvF9uIK65pupYGPy8YtlMoGl2RmWqswhaLfWM+K1EyKAD1vQJO1JQP1jW 1HBmDyEGP9IPqo57FbqJPzSPmBQRyl/a3pkGAnUjqvMYl+B9HsbtYsBDwAfHu4cT XZHrWTMHqMxgKnL4mNS908MvxtYndZPJSp7VN/DO/K8nkLJL5d4Clx0HKGywsIqh B6TBDVqfQBzyeapQVYutLDnbQy7/FjY2Fpykt2Ilm109jRh/1YbZe3yCHq+oCTI= =aBnJ -----END PGP SIGNATURE----- --=-=-=--