[Libreoffice] 8 combinations of Python support: do we really need that?

Tor Lillqvist tlillqvist at novell.com
Mon May 30 13:08:41 PDT 2011


Browsing configure.in, I see three different binary options for various aspects of Pyhon "support":

--disable-python. "Disable build of Python 2.x UNO API"
--enable-ext-scripting-python. "Enables support for scripts in Python"
--with-system-python. "Use Python already on system"

Now, I am sure that in practice all combinations of these options don't work; do we really want and need so much optionality for Python?

The above options propagate into various autoconf variables that then are propagated into the build environment through set_soenv.in: 

BUILD_TYPE="$BUILD_TYPE PYUNO"
AC_SUBST(DISABLE_PYTHON)
BUILD_TYPE="$BUILD_TYPE PYTHON"
AC_SUBST(SYSTEM_PYTHON)
SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_SCRIPTING_PYTHON"
AC_SUBST(ENABLE_SCRIPTING_PYTHON)

--tml




More information about the LibreOffice mailing list