[PATCHES] Port pytalloc to Python 3

Petr Viktorin pviktori at redhat.com
Mon Dec 8 06:22:04 MST 2014

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.

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.


More information about the samba-technical mailing list