From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Installing incompatible major versions of packages alongside each other Date: Fri, 22 Jul 2016 15:02:10 +0200 Message-ID: <87wpkdq10t.fsf@gnu.org> References: <20160719194754.254cf411@scratchpost.org> <20160720035823.GB21435@jasmine> <20160720092637.5813b122@scratchpost.org> <87d1m8d35a.fsf@gnu.org> <20160722105937.47ce9aec@scratchpost.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]:56422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQa64-00023J-9b for guix-devel@gnu.org; Fri, 22 Jul 2016 09:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQa5x-0002aA-Ng for guix-devel@gnu.org; Fri, 22 Jul 2016 09:02:31 -0400 In-Reply-To: <20160722105937.47ce9aec@scratchpost.org> (Danny Milosavljevic's message of "Fri, 22 Jul 2016 10:59:37 +0200") 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: Danny Milosavljevic Cc: guix-devel@gnu.org Hi Danny, Danny Milosavljevic skribis: >> In the former command-line package specification syntax, which is still >> supported but deprecated, =E2=80=9Cptpython-2=E2=80=9D was taken to mean= =E2=80=9Cversion 2 of >> package =E2=80=98ptpython=E2=80=99=E2=80=9D. Because of this, you canno= t refer to this >> =E2=80=9Cptpython-2=E2=80=9D package from the command-line (except with = -e). >>=20 >> The solution is to call it differently, like =E2=80=9Cptpython2=E2=80=9D. > > Hmm, it doesn't seem as if Guix Python itself uses that policy. Python 2.= 7 is called "python-2.7" (note: dash) The *variable* is called =E2=80=98python-2.7=E2=80=99, but the *name* field= (which is what matters here) has value "python". > Which mechanism does Guix use? Which should it use? Packages for Python 3.x are called =E2=80=9Cpython-XYZ=E2=80=9D, and packag= es for 2.x are called =E2=80=9Cpython2-XYZ=E2=80=9D: https://www.gnu.org/software/guix/manual/html_node/Python-Modules.html > For example right now I can't install icedtea-7: "guix package: error: ic= edtea: package not found for version 7" There=E2=80=99s no version 7, but there are other versions available: --8<---------------cut here---------------start------------->8--- $ guix package -A icedtea icedtea 1.13.11 out,jdk,doc gnu/packages/java.scm:196:2 icedtea 2.6.6 out,jdk,doc gnu/packages/java.scm:598:4 icedtea 3.0.1 out,jdk,doc gnu/packages/java.scm:768:4 --8<---------------cut here---------------end--------------->8--- Hope this clarifies things! Ludo=E2=80=99.