From owner-freebsd-python@FreeBSD.ORG Mon Jul 6 17:46:09 2009 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E16C106564A for ; Mon, 6 Jul 2009 17:46:09 +0000 (UTC) (envelope-from lwhsu.freebsd@gmail.com) Received: from mail-qy0-f204.google.com (mail-qy0-f204.google.com [209.85.221.204]) by mx1.freebsd.org (Postfix) with ESMTP id 125CF8FC1A for ; Mon, 6 Jul 2009 17:46:08 +0000 (UTC) (envelope-from lwhsu.freebsd@gmail.com) Received: by qyk42 with SMTP id 42so886101qyk.3 for ; Mon, 06 Jul 2009 10:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=3RxbPN/IGYHpDTD3Mg7sQ7IwJ0v+/p5N4Folc79aXy4=; b=VqXZ8w39vshxH5VjCuIBjgdHntZLH5Wv/C6REiKryffBb90sIZZZH/T1Ml1CyC5WFO t6RFOJbwQWPqmc3qWzRuuN4CdMMqlVaNEmSHGXtBMRbcCQc++SIYFBHBf+LzAfRs5aam Xcc1UFydZZ62BS8SQ2BxnbZXihgRoDZhMiAeg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=HRHcoYyWptXExFv9W/rzrIivO1ElRcOq1nAKCxev036/8mGD9V0vJxUTfk8i/gPsZj 2O94BIkQsTno5UlXCoU/ge6S1bqev18FO4gIhAd/t64xlsFGKW5o7P5G7AqT8iP9Fw1B w42gSxhmiPyvko1tBbH+XhcD8n6b56nJbPxFo= MIME-Version: 1.0 Sender: lwhsu.freebsd@gmail.com Received: by 10.229.96.10 with SMTP id f10mr2347535qcn.72.1246902367316; Mon, 06 Jul 2009 10:46:07 -0700 (PDT) In-Reply-To: <4A51C05B.7060108@ongs.co.jp> References: <4A51C05B.7060108@ongs.co.jp> Date: Tue, 7 Jul 2009 01:46:04 +0800 X-Google-Sender-Auth: 36e0f75889c0cab7 Message-ID: <1e39c0a90907061046l5c52ff4fu196ee1836df2bda@mail.gmail.com> From: Li-Wen Hsu To: Daichi GOTO Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Masanori OZAWA , freebsd-python@freebsd.org Subject: Re: [CFI] About Python3+ libraries 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: Mon, 06 Jul 2009 17:46:09 -0000 On Mon, Jul 6, 2009 at 17:14, Daichi GOTO wrote: > Easy and non-impact solution is to add ports with > py3- prefix I guess. For example, right now I want to > python3 verion x11-toolkits/py-tkinter. I think it is reasonable. I will add databases/py25-bsddb soon, for mail/py-spambayes using, which can only use Python 2.5 > =C2=A0x11-toolkits/py-tkinter =C2=A0 - (current port) > =C2=A0x11-toolkits/py3-tkinter =C2=A0- (I want to add, suiting for > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Python 3+) Please have a look at ports/136198, which makes py-tkinter work for both python 2.x and 3.x. I would like your comments. Also, there is ports/136199 for making databases/py-gdbm work for python 3.= x, comments welcomed, too. > Ideally, in the future while python3 as default version, > that will be follow I guess. > > =C2=A0x11-toolkits/py-tkinter =C2=A0 - (meta port depending on PYTHON_DEF= AULT_VERSION) > =C2=A0x11-toolkits/py2-tkinter =C2=A0- (suiting for Python 2.x, modified = from original > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 x11-toolkits/py-tkinter) > =C2=A0x11-toolkits/py3-tkinter =C2=A0- (suiting for Python 3+) > > I think that strategy is reasonable. So I am thinking to > add some python3+ libraries with py3- prefix if there is > no objections. I like this convention, and I prefer have py-* being as a master port, work both for every python version. Let py2-*, py3-*, and even py25*-, py24*-, py31*- as slave ports by setting USE_PYTHON to specified version in the Makefile. Anybody = likes this suggestion? (although I came to this idea after requesting repocopy databases/py-bsddb = to databases/py25-bsddb) > Are there any more good ideas and solutions? =C2=A0I want to > know your ideas. > That's great! Thanks work for Python on FreeBSD! --=20 Li-Wen Hsu http://lwhsu.org