From owner-freebsd-python@FreeBSD.ORG Tue Oct 2 12:05:17 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 35CA01065670; Tue, 2 Oct 2012 12:05:17 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward2h.mail.yandex.net (forward2h.mail.yandex.net [IPv6:2a02:6b8:0:f05::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC368FC1C; Tue, 2 Oct 2012 12:05:16 +0000 (UTC) Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward2h.mail.yandex.net (Yandex) with ESMTP id 2C8F0700E05; Tue, 2 Oct 2012 16:05:10 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id A6DC41340363; Tue, 2 Oct 2012 16:05:09 +0400 (MSK) Received: from unknown (unknown [77.66.155.61]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 53Uijf4o-57U8ded5; Tue, 2 Oct 2012 16:05:08 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1349179509; bh=C/0WJUR7Smso1P6mREO7i2MFQKiWzU/qhkYPpYt5ees=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Nr8+dUmTnBwabdFxu/btPZ15d1wCkdwPu/AgD16vJHFcD40VnwfyasiKgVhY5pXxq q/e/nKmWtSGg/C5vJJnJSANg2NzSa9Xmz8rOCOcuEvk270kE+ZXJdpmQJzYs9RBy8K RvclgUfYHR4rEszrdeUzGwBtddM0REm/aSS6epxg= Message-ID: <506AD869.6090605@yandex.ru> Date: Tue, 02 Oct 2012 16:04:57 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Dmitry Sivachenko References: <5062AAEA.4000401@FreeBSD.org> <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 , Li-Wen Hsu 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 12:05:17 -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" 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. > 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... I just realized there is such a document: http://www.python.org/dev/peps/pep-0394/ According to it: python2 will refer to some version of Python 2.x python3 will refer to some version of Python 3.x python should refer to the same target as python2 but may refer to python3 on some bleeding edge distributions And it has full details about all the symlinks etc. So it's not just linuces. I'd read it before preparing the patch. -- Regards, Ruslan Tinderboxing kills... the drives.