From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: Python 2 and Python 3 ? Date: Fri, 23 Feb 2018 12:36:55 -0500 Message-ID: <20180223173655.GB24390@jasmine.lan> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GRPZ8SYKNexpdSJ7" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epHHL-0000SJ-Cw for help-guix@gnu.org; Fri, 23 Feb 2018 12:37:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epHHG-0000Xa-Ez for help-guix@gnu.org; Fri, 23 Feb 2018 12:37:03 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:59523) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1epHHG-0000X3-9D for help-guix@gnu.org; Fri, 23 Feb 2018 12:36:58 -0500 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: zimoun Cc: help-guix@gnu.org --GRPZ8SYKNexpdSJ7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2018 at 06:27:30PM +0100, zimoun wrote: > I am asking if this behaviour is expected or if I miss something. >=20 > The command: >=20 > guix package -i python >=20 > installs the python3 version and there is no python in .guix-profile/bin/. >=20 > And in another profile `guix package -i python@2' installs the python2 > and there is python in profile/bin/. >=20 >=20 > To me, it is counter-intuitive. What is the reason ? > And there is not any, since python 2 is dying, I suggest that python > points to python3 and not python2. The recommendation by the CPython team, expressed in their build scripts, is to install Python 3 as `python3`, and we try to follow upstream as closely as we can. I'd guess their reason is long-term compatibility with existing Python software that assumes `python` is Python 2. We offer Python 3 as `python` in the special package python-wrapper. In general, Guix does default to Python 3. If you want to use Python 2 in a package or profile, you have to specify it. Otherwise, using the package named 'python' will give you Python 3. If there are several versions of a Guix package with the same name, Guix uses the latest version by default. --GRPZ8SYKNexpdSJ7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlqQUTcACgkQJkb6MLrK fwjseg//dqYHGgLzv/5YouZhwFiA1FHESOp+Sh2KFc1U9X4IIguPv0QctnPrKVLm ccAMHSuQnFhH3ZMK7XSTVBgqPbwwTsbiBmYZfPfbCHsTawVUKosFyIrokKqjIAFU LQudbaQpfvIk8xs5RGoeLXIM3ePTxaLWQ38fiaGZeFeMC6exDd5VQMDNJXJe31SS IBT1s9jT1JtwBFuGPXQ0pGnwDfqyLESt2KUsoHrDsLbE8j5+3WWlOPiMTY7yxHEk 9lOpiCZL3IDsdn4wD/7eo+Z0ozAFyzp4o2/L/xVFZh2ckdt/Q4irfdSrpmSv/rzv i9ewtCgHFf3aSVjRAIvFFgpqqk0ZoVdKq9lB9+EikFdMqYJoBdvd908M1qaVevo7 nVujhZC+iUFIZ1xprJQpdfZ+QdWhSnRZ+y6fkoEMPwHAIXuOchoidZ68AM9XqdQw 20l3RWQ6fwRZVfpVw+kfPmt/0gt8rgDloQfLsmU5Hd5AN/wY5+c04/heZ5Rp9TF3 GOxbCtt+u3hiMqZjzYCgjlt3yehYbs7kB4Ni6Z2lxPN2CiA3SJ+Z1IMec7U/EZc6 tVsl2sro4sl0SB2SzRD0Dv9qZ7TXEEkFVG9blgUWifWqT7WqoljqhnpX5e8Et05O L8DGF6pugjToyZ6CaTDJgKqtcam9oTQKi5OBkah2Ug0vSYZpVlE= =R14A -----END PGP SIGNATURE----- --GRPZ8SYKNexpdSJ7--