From owner-freebsd-python@FreeBSD.ORG  Wed Sep 26 09:20:37 2012
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
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 E7F47106566C;
	Wed, 26 Sep 2012 09:20:37 +0000 (UTC)
	(envelope-from cvs-src@yandex.ru)
Received: from forward14.mail.yandex.net (forward14.mail.yandex.net
	[IPv6:2a02:6b8:0:801::4])
	by mx1.freebsd.org (Postfix) with ESMTP id 60CEA8FC15;
	Wed, 26 Sep 2012 09:20:37 +0000 (UTC)
Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68])
	by forward14.mail.yandex.net (Yandex) with ESMTP id ED3DB1982188;
	Wed, 26 Sep 2012 13:20:35 +0400 (MSK)
Received: from smtp13.mail.yandex.net (localhost [127.0.0.1])
	by smtp13.mail.yandex.net (Yandex) with ESMTP id B6262E40552;
	Wed, 26 Sep 2012 13:20:35 +0400 (MSK)
Received: from unknown (unknown [77.66.155.61])
	by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTP id
	KZgquq0b-KZgWlLLS; Wed, 26 Sep 2012 13:20:35 +0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
	t=1348651235; bh=cLko0/FxjMyxpEIq/sPH/lth5ULR8Qehm0kzW9AsMyM=;
	h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:
	References:In-Reply-To:Content-Type:Content-Transfer-Encoding;
	b=Xp/4rZFSlU35I9L7kMMnSuX2DJ3biBlPcCe+g7m3UjkjDSgEyy7GK+O1EU7fgJ40l
	o0tYtxWTCvDUILChzCCPYzjRQHSskz8hIHpEtzJwKOxTK+N2H+GmwBHi+/dclSoJvS
	Qygpe1aMv25pZsGvblKcqG0riCeT6TWZJKSOxca4=
Message-ID: <5062C8CE.701@yandex.ru>
Date: Wed, 26 Sep 2012 13:20:14 +0400
From: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:15.0) Gecko/20120912 Thunderbird/15.0.1
MIME-Version: 1.0
To: Dmitry Sivachenko <demon@FreeBSD.org>
References: <5062AAEA.4000401@FreeBSD.org>
	<CADLo838ZysqxVHPuj6_M223ohanPWRoqc2mwePNeBYbGa2OfRQ@mail.gmail.com>
	<5062C5CB.4060109@yandex.ru> <5062C769.6090305@FreeBSD.org>
In-Reply-To: <5062C769.6090305@FreeBSD.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: python@freebsd.org, Chris Rees <utisoft@gmail.com>
Subject: Re: bin/python3 symlink for python3X ports
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, 
	<mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
	<mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Sep 2012 09:20:38 -0000

Dmitry Sivachenko wrote on 26.09.2012 13:14:
> On 26.09.2012 13:07, Ruslan Mahmatkhanov wrote:
>> Chris Rees wrote on 26.09.2012 13:03:
>>> On 26 Sep 2012 08:13, "Dmitry Sivachenko" <demon@freebsd.org> wrote:
>>>>
>>>> Hello!
>>>>
>>>> It is common to have both python-2 and python-3 packages installed.
>>>> To help transition it is convenient to have bin/python to point to
>>> python-2 binary.
>>>>
>>>> Now for every X in python3X we have a bin/python3.X binary.
>>>>
>>>> So for every new python3.X release one should change shebang line in
>>> scripts.
>>>>
>>>> I propose to tweak python3X ports so they create bin/python3 symlink
>>> pointing to the installed python3.X binary so that people can always use
>>> 'python3' name.
>>>>
>>>> What do you think?
>>>
>>> I think it's a great idea, at least minimising weird breakage when
>>> python
>>> is updated.
>>>
>>> Have you a patch?  Also, what do other OSes do?
>>>
>
>
> I don't have a patch but I can make one if you like.

Please do.

> I don't use other OSes so I have no idea what do they do with that
> problem and I don't see any reason why should we bother...

To no reinvent the wheel, for example. And because many software 
installers (setup.py, f.e.) are somewhat linux-centric: they looking for 
python2 or python3 binary (that we change to ${PYTHON_CMD} in our 
Makefile's).

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.