Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2012 02:01:20 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        python@freebsd.org
Cc:        =?big5?B?x/fIYsheyGjIZsheyF8gyEbIXshXyFXIbchayGPIYMhk?= <mitya@yandex-team.ru>, Chris Rees <utisoft@gmail.com>, Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Subject:   Re: bin/python3 symlink for python3X ports
Message-ID:  <20121213180120.GA83924@FreeBSD.cs.nctu.edu.tw>
In-Reply-To: <20121013132503.GA49101@FreeBSD.cs.nctu.edu.tw>
References:  <5062C5CB.4060109@yandex.ru> <5062C769.6090305@FreeBSD.org> <5062C8CE.701@yandex.ru> <5062E478.8020000@FreeBSD.org> <CAKBkRUxThcF3amNLBazkkdd2s9ce73u_J=q3o2EvpyLhL4GnfQ@mail.gmail.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 13, 2012 at 21:25:03 +0800, Li-Wen Hsu wrote:
> On Wed, Oct 10, 2012 at 00:00:20 +0400, Ç÷ÈbÈ^ÈhÈfÈ^È_ ÈFÈ^ÈWÈUÈmÈZÈcÈ`Èd wrote:
> > On 10/5/12 9:23 AM, Ç÷ÈbÈ^ÈhÈfÈ^È_ ÈFÈ^ÈWÈUÈmÈZÈcÈ`Èd 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 another
>   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.

-- 
Li-Wen Hsu <lwhsu@FreeBSD.org>
http://lwhsu.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121213180120.GA83924>