[SSSD] [patch] Python 3 support for sssd

Bohuslav Kabrda bkabrda at redhat.com
Tue Jul 8 14:38:00 UTC 2014


Hey all,
for past few days, I've been working on python3-compat patch for sssd. The patch [1] is attached to the issue that requests this feature [2].
Some comments:
- The patch tries to maintain backward compatibility for Python 2.6 and 2.7 - I admit I only tested 2.7 so far, but it seemed to work ok.
- I didn't yet solve the build part - for now, I just handedit configure.ac to set "PYTHON=python3" and src/external/python.m4 to set "AC_PATH_PROG(PYTHON, python3)" and compile with that.
- I managed to run Python tests in src/tests except python-test.py itself (it says "OSError: [Errno 5] Could not initialize connection to the confdb" and I didn't yet investigate why that happens).
- To run tests, one must modify the hashbangs to /usr/bin/python3 (I now see that I left one of these in the actual patch, so please disregard that).

I'd like to ask you, sssd devels, to give me some comments on the patch (or ask questions) and if you have some time to spare, doing more extensive testing would also be very welcome.

-- 
Regards,
Bohuslav "Slavek" Kabrda.

[1] https://fedorahosted.org/sssd/attachment/ticket/2017/sssd-python3-compat.patch
[2] https://fedorahosted.org/sssd/ticket/2017



More information about the sssd-devel mailing list