Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2009 01:46:04 +0800
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        Daichi GOTO <daichi@ongs.co.jp>
Cc:        Masanori OZAWA <ozawa@ongs.co.jp>, freebsd-python@freebsd.org
Subject:   Re: [CFI] About Python3+ libraries
Message-ID:  <1e39c0a90907061046l5c52ff4fu196ee1836df2bda@mail.gmail.com>
In-Reply-To: <4A51C05B.7060108@ongs.co.jp>
References:  <4A51C05B.7060108@ongs.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 6, 2009 at 17:14, Daichi GOTO<daichi@ongs.co.jp> 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



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