General question python2/3

44 views
Skip to first unread message

Axel Braun

unread,
May 13, 2016, 7:22:54 AM5/13/16
to tryton-dev
Hi all,

I started packaging Tryton 4 for openSUSE - Server is already done :-)
In this context I noticed that not for all python2 packages a correspondence in python3 is available, e.g. python-pydot or python-wrapt
Is it safe to use the python2-packages? Or would it be better look for/build a python3 package first?

Thanks for advise
Axel

Cédric Krier

unread,
May 13, 2016, 11:30:03 AM5/13/16
to tryton-dev
Usually package distribution contains only binaries for one interpreter.
So you should check for which version those packages are.

Also I think it is good to provide packages for both python versions as
not all modules are available in both. And some developer could need one
specific version.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Axel Braun

unread,
May 17, 2016, 4:47:03 AM5/17/16
to tryton-dev
Hi Ced,


Am Freitag, 13. Mai 2016 17:30:03 UTC+2 schrieb Cédric Krier:
On 2016-05-13 04:22, Axel Braun wrote:
> Hi all,
>
> I started packaging Tryton 4 for openSUSE - Server is already done :-)
> In this context I noticed that not for all python2 packages a
> correspondence in python3 is available, e.g. python-pydot or python-wrapt
> Is it safe to use the python2-packages? Or would it be better look
> for/build a python3 package first?

Usually package distribution contains only binaries for one interpreter.
So you should check for which version those packages are.

That depends on if you build them against python 2.7 or 3.x....
 
Also I think it is good to provide packages for both python versions as
not all modules are available in both. And some developer could need one
specific version.

Yes, I noticed this as well.
I assume a mix of both versions will probably not work, correct?
To be on the safe side, I feel it makes sense to stay wit Python 2.7, until everything is ported

Best
Axel

 

Cédric Krier

unread,
May 17, 2016, 5:10:02 AM5/17/16
to tryton-dev
On 2016-05-17 01:47, Axel Braun wrote:
> I assume a mix of both versions will probably not work, correct?

I don't know your distribution but on my Gentoo or OpenBSD, I can
install both without any problem. Indeed on Gentoo it will install for
all interpreter version available.

> To be on the safe side, I feel it makes sense to stay wit Python 2.7, until
> everything is ported

This will be a bad move because it prevents having large tests and
getting the improvements of Python 3.
Reply all
Reply to author
Forward
0 new messages