[CFI] About Python3+ libraries

Li-Wen Hsu lwhsu at FreeBSD.org
Mon Jul 6 17:46:09 UTC 2009


On Mon, Jul 6, 2009 at 17:14, Daichi GOTO<daichi at 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

>  x11-toolkits/py-tkinter   - (current port)
>  x11-toolkits/py3-tkinter  - (I want to add, suiting for
>                               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.
>
>  x11-toolkits/py-tkinter   - (meta port depending on PYTHON_DEFAULT_VERSION)
>  x11-toolkits/py2-tkinter  - (suiting for Python 2.x, modified from original
>                               x11-toolkits/py-tkinter)
>  x11-toolkits/py3-tkinter  - (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?  I want to
> know your ideas.
>

That's great!  Thanks work for Python on FreeBSD!

-- 
Li-Wen Hsu
http://lwhsu.org


More information about the freebsd-python mailing list