From owner-freebsd-python@FreeBSD.ORG Thu Dec 13 18:25:48 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 827DAE66; Thu, 13 Dec 2012 18:25:48 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C37DD8FC16; Thu, 13 Dec 2012 18:25:47 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id je9so1244896bkc.13 for ; Thu, 13 Dec 2012 10:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LbkiVt5vqxnuLTwohRyvGJ0Y6/sJXfztDrSHI+bcxck=; b=kyHb9HnCgmdci4ZSZVTUhviZA01DFz+YpHxV6AhfT/uJZUdlFDa9nXv2ZdbrpownLH cC914KxWOeVXScgwaQz4HPvJPDT1jS5bMkedUPyevYgcg2URF/IXMSBslzvRTVxp/vbm ui9k5eO6waFV4YJnDNz7Gtyejm99kBf+glO03VAVq7j+jOkwDRJFMa+BHLsLT6vAxSaA myRmo/FWEg64XMQ8Z/ypsulHFjr9xn53m3ROoJV3QkiFO3tHKzKO0EmJetkFhqHNhXGI gQFGUzedUJMNCZuczB/8w8tHYGGfeWQQVqRDgHLnpxwnQUyDGbSGTzDzKNRQfCmZKLy9 Auhw== MIME-Version: 1.0 Received: by 10.204.11.208 with SMTP id u16mr1530821bku.81.1355423146366; Thu, 13 Dec 2012 10:25:46 -0800 (PST) Received: by 10.204.167.71 with HTTP; Thu, 13 Dec 2012 10:25:46 -0800 (PST) Received: by 10.204.167.71 with HTTP; Thu, 13 Dec 2012 10:25:46 -0800 (PST) In-Reply-To: <20121213180120.GA83924@FreeBSD.cs.nctu.edu.tw> References: <5062C5CB.4060109@yandex.ru> <5062C769.6090305@FreeBSD.org> <5062C8CE.701@yandex.ru> <5062E478.8020000@FreeBSD.org> <506436DB.90408@FreeBSD.org> <20121001173946.GB4939@FreeBSD.cs.nctu.edu.tw> <506E6EEC.5030209@yandex-team.ru> <50748254.5030409@yandex-team.ru> <20121013132503.GA49101@FreeBSD.cs.nctu.edu.tw> <20121213180120.GA83924@FreeBSD.cs.nctu.edu.tw> Date: Thu, 13 Dec 2012 18:25:46 +0000 Message-ID: Subject: Re: bin/python3 symlink for python3X ports From: Chris Rees To: Li-Wen Hsu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: =?UTF-8?B?756k75+O75+K75+U75+S75+K75+LIO+esu+fiu+fg++fge+fme+fhu+fj++fjO+fkA==?= , python@freebsd.org, Ruslan Mahmatkhanov X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 18:25:48 -0000 On 13 Dec 2012 18:01, "Li-Wen Hsu" wrote: > > On Sat, Oct 13, 2012 at 21:25:03 +0800, Li-Wen Hsu wrote: > > On Wed, Oct 10, 2012 at 00:00:20 +0400, =EF=9E=A4=EF=9F=8E=EF=9F=8A=EF= =9F=94=EF=9F=92=EF=9F=8A=EF=9F=8B =EF=9E=B2=EF=9F=8A=EF=9F=83=EF=9F=81=EF= =9F=99=EF=9F=86=EF=9F=8F=EF=9F=8C=EF=9F=90 wrote: > > > On 10/5/12 9:23 AM, =EF=9E=A4=EF=9F=8E=EF=9F=8A=EF=9F=94=EF=9F=92=EF= =9F=8A=EF=9F=8B =EF=9E=B2=EF=9F=8A=EF=9F=83=EF=9F=81=EF=9F=99=EF=9F=86=EF= =9F=8F=EF=9F=8C=EF=9F=90 wrote: > > > > On 01.10.2012 21:39, Li-Wen Hsu wrote: > > > >> > > > >> Thanks for working on this, I am looking forward to your patch. > > > >> > > > > > > > > Hello, > > > > > > > > Please consider the attached patch for python2/python3 symlinks. > > > > As I proposed earlier in this thread, I think it is sane to make these > > > > symlinks > > > > for latest python2.X/python3.X versions only (this is what people should > > > > use by > > > > default in most cases). > > > > > > > > And let people explicitly run older versions if they really need them. > > > > > > Should I treat your silence as 'no objection'? > > > > I have no objection, we're toward the same direction, and here is my patch: > > > > http://people.freebsd.org/~lwhsu/patch/python-major-version-link.diff > > > > Which does following things: > > > > - Remove "first-win" logic in Makefile, this generates conflicting > > packages. If we really need this, it should be implemented in anothe= r > > way. > > > > - Create symbolic links as PEP 394 [1] suggests. ${DEFAULT_PYTHON_VERSION} > > will create python and python${MAJOR_VERSION} links, for current default, > > python2.7 will create: python -> python2 -> python2.7 > > > > - Introduce PYTHON3_DEFAULT_VERSION, which will handle bin/python3 link= . > > It is a bit hacky, but I don't have better idea at this point. > > And we might still need to change this to PYTHON2_DEFAULT_VERSION > > when we change default version to 3.x. > > > > I think it has better to be committed after freeze. Meanwhile, if you > > really want to have bin/python{2,3} in the tree, I would not object you > > commit your patch, since they are not conflicting. > > > > How does everyone think? > > > > [1] http://www.python.org/dev/peps/pep-0394/ > > I'll commit the patch this weekend. Thank you for tracking this. Chris