A plan to get to py3

Andrew Bartlett abartlet at samba.org
Thu Aug 9 23:03:51 UTC 2018


On Thu, 2018-08-09 at 12:12 +0100, Noel Power wrote:
> Hi Andrew

> In the interim (until Alexanders waf is merged and the necessary work to
> get make test (with ad_dc environments etc.) working we could do
> something like what you suggest (again assuming I got it correctly) e.g.
> we could adjust our existing python2 waf to split out jobs as follows
> 
> * use same configure as we do now
> 
>   ./configure --enable-developer --extra-python=/usr/bin/python3 blah
> blah blah
> 
> * build_samba
>     py2 configure/ py2 build / p2test (e.g. run all the tests under py2
> completely ignore EXTRA_PYTHON)
> 
> * build_samba_py3
>    py2 configure/ py2 build/  py3test (e.g. run only those test that are
> py3_compatible with python3, don't run them under python2, same
> suggestion nearly as yours for what to do with planpythontestsuite but
> with a twist, not based on python version but some other yet to be
> decided flag/env variable)
> 
> maybe instead of using PYTHON=python3 we could use USE_PYTHON=python3
> (and later change that to PYTHON and hopefully if coded correctly most
> of what is done above could be rejigged easily to be more in line with
> your orig suggestion or some variation)
> 
> How does that sound ? I know you included lots of detail (snipped) which
> I don't really understand yet, nor do I really know how to achieve the
> above but I would hope to be able to cobble something together :-)

This sounds like a plan, and a practical first step on the way to
building with python3 (then we can then strip the USE_PYTHON bit back
out). 

Thanks,

Andrew Bartlett
-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba







More information about the samba-technical mailing list