#2017 [RFE] Python 3 support
Closed: Fixed None by bkabrda. Opened 5 years ago by bkabrda.

Hi guys,

have you already tried building/running sssd with Python 3? It'd be great to have sssd Python 3 compatible, since the whole world is moving to Python 3 and Fedora will have to do that step to, eventually.

Thanks!


Hi!

I'm not aware of any Python 3 effort but I agree it would be nice to have. We have developer experience with Python 2, are there any Fedora-specific docs we should be following? Is the conversion effort aligned with some particular Fedora release?

I don't think that there are any specific rules you should follow. This is not a Fedora specific, but rather Python specific matter. I'm currently putting together an estimation of work needed done to transfer Fedora to Python 3, so I'm trying to reach out to various upstreams that are essential to Fedora and see how they feel about getting compatible with Python 3. As soon as I have a plan and start discussing it in community, I'll let you know for sure.

Fields changed

milestone: NEEDS_TRIAGE => Interim Bucket

Fields changed

rhbz: => 0

Fields changed

milestone: Interim Bucket => SSSD 1.12 beta

Fields changed

summary: Python 3 support => [RFE] Python 3 support

Fields changed

milestone: SSSD 1.12 beta => SSSD 1.13 beta

Hi, is anyone working on this? I'm currently trying to work through all the remaining deps that haven't yet been ported to Python 3 and sssd is next on my list. So assuming you haven't started already, I'll (try to) do this :)

We haven't started yet.

A patch would be mostly welcome, thank you! Feel free to ask on the sssd-devel list or on #sssd on freenode.

Just please note that sssd git master supports even RHEL-6, do you plan on the changes to be backwards-compatible?

Replying to [comment:11 jhrozek]:

We haven't started yet.

A patch would be mostly welcome, thank you! Feel free to ask on the sssd-devel list or on #sssd on freenode.

Thanks, I'll go there if I need some help.

Just please note that sssd git master supports even RHEL-6, do you plan on the changes to be backwards-compatible?

Yes, since RHEL 6 luckily has Python 2.6, that shouldn't be a problem. It's going to take some ifdefs, but it's perfectly possible.

Hi, so I added a first version of patch that allows building sssd with Python 3. It doesn't actually make sssd build with Python 3 - for now, I just handedit configure.ac to set "PYTHON=python3" and src/external/python.m4 to set "AC_PATH_PROG(PYTHON, python3)".

We can work on the build part later, first I'd like to ask you to review the actual patch and tell me some comments/ask some questions where you're not sure.

Thanks!

Thanks for the patch! Can you send it to the sssd-devel list, though, so all the other developers can chime in? You can either subscribe to the list or I can let your messages through the moderation, whatever works better for you.

Fields changed

mark: => 0

resolution: => fixed
status: new => closed

ona last patch to master - e239b5b

Moving to the correct milestone.

milestone: SSSD 1.13.1 => SSSD 1.13.0
sensitive: => 0

Metadata Update from @bkabrda:
- Issue set to the milestone: SSSD 1.13.0

2 years ago

Login to comment on this ticket.

Metadata