Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

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.

But if you want to do python2 and 3 in parallel, you need a hack. What I do here
is:

1602 ifeq "$(BUILD_PYUNO)" "y"
1603   ifeq "$(ENABLE_PYTHON3)" "y"
1604         # FIXME: won't work when pyuno is migrated to gbuild as all is directly in solver
1605         # then...
1606         rm -rf $(SOURCE_TREE)/pyuno-py3
1607         cp -ra $(SOURCE_TREE)/pyuno $(SOURCE_TREE)/pyuno-py3
1608         cd $(SOURCE_TREE)/pyuno-py3; \
1609                 rm -rf $(shell . $(SOURCE_TREE)/Env.Host.sh; echo $$OUTPATH$$PROEXT); \
1610                 . $(CURDIR)/$(SOURCE_TREE)/Env.Host.sh; \
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) \
1612                 ../solenv/bin/build.pl  # NO DELIVER!
1613   endif
1614 endif

+ other stuff to reuse python2s files if the same and install python3
stuff manually.

(see 
http://anonscm.debian.org/gitweb/?p=pkg-openoffice/libreoffice.git;a=blob;f=rules;h=1a35e8ee8d0ff3de5d495a036197355b784269f1;hb=refs/heads/debian-experimental-3.5
 and look for ENABLE_PYTHON3 stuff)

Regards,

Rene

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.