[PATCHES] Port pytalloc to Python 3

Simo simo at samba.org
Mon Dec 8 08:12:08 MST 2014

On Mon, 2014-12-08 at 14:22 +0100, Petr Viktorin wrote:
> On 12/05/2014 02:50 PM, Alexander Bokovoy wrote:
> > On Fri, Dec 5, 2014 at 2:27 PM, Petr Viktorin <pviktori at redhat.com> wrote:
> >>>>> For talloc, tdb and ldb it makes sense to support both python2 and
> >>>>> python3. For Samba itself, the burden of maintaining support for both
> >>>>> is much higher, and the benefits smaller.
> >>>>
> >>>> Yes. However, talloc/tdb/ldb support for both Python2 and Python3
> >>>> means there is need to improve our build system to support both Python
> >>>> versions so this task is relevant.
> >>
> >>
> >> Just to clarify: Are you just saying it needs to be possible to build Samba
> >> with Python 3?
> >> Or are you proposing that the modules for both Python 2 and 3 be built in
> >> the same configure/make run? It seems (to me, currently) that this would
> >> require rather big changes in Waf, while a configure-time switch for the
> >> Python version is practically free.
> > The latter because how otherwise would you be able to package both
> > python2 and python3 modules when packaging Samba?
> > We are not going to have two more samba packages differing in their
> > python bindings.
> Right.
> Since that the stand-alone libraries will need to support both versions 
> for a longer time, it does make sense to invest in adding this to the 
> build system. I'll put some effort into that.

I do not think it is reasonable to drop Python 2 support in the short
term. We have a ton of people still recompiling and installing on older
OSs that do not have Python 3, and I am not talking only about
RHEL/CentOS 6 or older Ubuntu LTS but also other Unix flavors.

Forcing people to recompile Python 3 on those systems just to get Samba
to run on them seem a little bit excessive. (And please do not propose
to embed a version of python3 in our sources or my head will explode! :)

I think the only reasonable way to go to have a smooth transition for
our downstreams is to support both Python2 and Python3 in our code for
at least a coupe of years.


Simo Sorce

More information about the samba-technical mailing list