Samba and Python2

Stefan Metzmacher metze at samba.org
Tue Feb 19 22:52:25 UTC 2019


Hi Tim,

> The problem I hit was a lot of build/python interdependencies when
> trying to use subunit on a build with --disable-python configured. I've
> attached the actual errors I was hitting and my attempts to work through
> the problems.
> 
> Aside from the dependency issues, a couple of things didn't feel quite
> right with this approach:
> 1. It seemed to be working at cross-purposes - to both produce a
> cut-down build with python excluded, and then to include a bunch of
> python code just to test the build was successful.
> 2. In the medium-term, it seemed like a lot more python2 code to
> maintain compatibility with (although granted, the approach with
> no-python-tests.txt also has its own maintenance overhead).
> 
> I think ideally what we want here would be to separate out the compile
> and test steps in CI, e.g. do make/install samba in a separate step
> (i.e. use a separate repo or container volume), and then just point the
> full selftest/autobuild (py3) scripts at the installed code. However, I
> don't think it'd be particularly easy to do this currently.

Thanks!

For now I'm happy with
https://gitlab.com/samba-team/devel/samba/pipelines/47936495
It's clearly better than the current state.

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20190219/cafb3c99/signature.sig>


More information about the samba-technical mailing list