Building Nuxeo with Python 3 instead of Python 2?

To build Nuxeo yourself you need python2, as explicit stated in the official docs: https://doc.nuxeo.com/corg/getting-the-nuxeo-source-code . Python 2 is EOL for more than nearly 3 years now and is not supported anymore on most Linux distributions (including Arch Linux and CentOS).

What is the best strategy to build Nuxeo without Python 2? Has anybody updated the needed script to version3 and can contribute it to the community?

Thanks!

0 votes

1 answers

500 views

ANSWER



Good idea. This was a thing still on my todo. I quickly converted the clone.py (+ the py files in scripts) using 2to3 and added two .decode("utf8")

Attached is a patch file. You should be able to just run git apply py3.patch in the source dir.

This was just a quick fix and it works for me. Let me know if there is a problem for you. That said, there is a lot more that needs to be done to the python scripts. But they work. So not gonna spend much time on these.

FILES:   py3.patch
0 votes



Thanks Konrad!

That's exactly what I was looking for. Would be nice if the maintainers at Hyland/Nuxeo incorporate that piece of work.

11/17/2022