waf and building python modules for multiple python versions

Michael Tokarev mjt at tls.msk.ru
Sun Apr 10 07:06:01 UTC 2022


10.04.2022 07:26, Andrew Bartlett via samba-technical wrote:
[]
> Just run the whole thing twice for those, right from the top, picking
> out the different modules.  The 'used elsewhere' libs are much simpler
> and only have python -> C deps thankfully.  They are also really fast
> to recompile.

I did exactly that yesterday as an experiment for talloc. That worked.
FWIW, the configure step takes about two orders of magniture
more time than compiling it - even if for talloc about 99% tests which
are done at configure time are useless :)

(For talloc it really is trivial to build it with just 3 commands to
build the 3 .so libs with about 5-10 -Defines for configure-generated
variables which re _actually_ used in there.  For other parts it is
not _that_ simple :) )

Thanks!

/mjt



More information about the samba-technical mailing list