bin/python3 symlink for python3X ports

Li-Wen Hsu lwhsu at FreeBSD.org
Mon Oct 1 17:39:48 UTC 2012


On Thu, Sep 27, 2012 at 15:22:03 +0400, Dmitry Sivachenko wrote:
> On 26.09.2012 17:00, Li-Wen Hsu wrote:
> >
> > I think this patch is good.  And I am thinking about also modifying
> > other lang/python{2,3}X ports, thus we may need to beware of
> > confliction on bin/python{2,3} between lang/python2X or lang/python3X
> > ports.  It is not so common but still possible to have more then one
> > lang/python2X or lang/python3X ports installed.  Maybe we can use the
> > same logic of bin/python installation (first wins).
> >
> 
> I beleive that the vast majority of python[23] users will be fine with the 
> latest version of the relevant branch.
> Considered that and also not to over complicate things I propose to make 
> python2/python3 symlink only for the latest version: python2 -> python2.7
> and python3 -> python3.2 for now.
> 
> And leave python31, python25, python26 untouched.  Users who really need older 
> versions of python should explicitly require python version during startup.
> 
> If it is OK for you, I can work out the final patch.

I think it's OK, and one more this might be helpful in the future is
adding a condition like:

.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}

then install the symlink.

Thanks for working on this, I am looking forward to your patch.

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


More information about the freebsd-python mailing list