waf and building python modules for multiple python versions

Andrew Bartlett abartlet at samba.org
Sat Apr 9 07:52:26 UTC 2022

On Sat, 2022-04-09 at 10:14 +0300, Michael Tokarev via samba-technical
> Here with waf, I don't see how it is possible. Well, I do
> see one possibility: to copy source into yet another separate
> subdir (as many subdirs as there are additional python
> versions for the build) and run configure & build & install
> in every of them in turn, specifying the right PYTHON= in
> the environment.  This *should* work.

That is the only plan I can think of.  But which python version would
Samba's python-using libs link to?  For as long as you ship smbtorture
and expect it to work you would have to do multiple versions of that as

Andrew Bartlett

Andrew Bartlett (he/him)        https://samba.org/~abartlet/
Samba Team Member (since 2001)  https://samba.org
Samba Developer, Catalyst IT    https://catalyst.net.nz/services/samba

More information about the samba-technical mailing list