Configure LO for Python 3?

Rene Engelhard rene at debian.org
Thu Feb 16 04:46:46 PST 2012


Hi,

On Thu, Feb 16, 2012 at 01:29:59PM +0100, Rene Engelhard wrote:
> On Thu, Feb 16, 2012 at 01:08:48PM +0100, Stephan Bergmann wrote:
> > With <http://cgit.freedesktop.org/libreoffice/core/commit/?id=a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe>
> > "Port PyUno to support Python 3," is there any way to configure a LO
> > build so that it actually uses Python 3 instead of 2, on a Fedora 16
> 
> You just point to it afaics. (you specify the correct python binary).
> But never tried it myself. Default should be python2 anyway.

That said, yes, you need to fix the pkg-config check to look for the
correct .pc...

> 1611                 PATH=$(BUILD_PATH) PYTHON=$(PYTHON3) PYTHON_CFLAGS=$(shell pkg-config --cflags python-$(PY3MAJOR).$(PY3MINOR)mu) PYTHON_LIBS=$(shell pkg-config --libs python-$(PY3MAJOR).$(PY3MINOR)mu) \

... as here.

Regards,
 
Rene


More information about the LibreOffice mailing list