Samba and Python2

Noel Power nopower at suse.com
Thu Feb 14 09:11:22 UTC 2019


On 14/02/2019 04:13, Tim Beale wrote:
> I've attached an updated patch-set to drop the py2 jobs from CI
> (.gitlab-ci.yml just got substantially reworked in master).
>
> New CI link: https://gitlab.com/samba-team/devel/samba/pipelines/47451100
>
> On 13/02/19 4:31 PM, Tim Beale via samba-technical wrote:
>> Hi,
>>
>> Just following up on this. How about something like the following? It
>> tries to merge what was discussed with what was already in the WHATSNEW.
>>
>> python3 support
>> ---------------
>> This is the first release of Samba which has full support for Python 3.
>> Samba 4.10 still has support for Python 2, however, Python 3 will be used by
>> default, i.e. 'configure' & 'make' will execute using python3.
>>
>> To build Samba with python2 you *must* set the 'PYTHON' environment variable
>> for both the 'configure' and 'make' steps, i.e.
>>    'PYTHON=python2 ./configure'
>>    'PYTHON=python2 make'
>> This will override the python3 default.
>>
>> Alternatively, it is possible to produce Samba Python bindings for both
>> Python 2 and Python 3. To do so, specify '--extra-python=/usr/bin/python2'
>> as part of the 'configure' command. Note that python3 will still be used as
>> the default in this case.
>>
>> Note that Samba 4.10 supports Python 3.4 onwards.
>>
>> Future Python support
>> ---------------------
>> Samba 4.10 will be the last release that comes with support for Python 2.
>> Unfortunately, the Samba Team doesn't have the resources to support both
>> Python 2 and Python 3 long-term.
>>
>> Samba 4.11 will not have any support for Python 2. This means if you use
>> Python 2 bindings it is time to migrate to Python 3 now.
>>
>> Also note that Samba 4.11 will only support Python 3.6 onwards.
>> -------------------------------------------------------------------
>>
>> If you've got suggestions/changes, let me know. Attached is a patch for
>> the v4.10 WHATSNEW that uses the above text.
lgtm, all a big improvement and clearer wording from the previous from
my point of view, thanks alot



More information about the samba-technical mailing list