Python integration in LibreOffice 24.2 and 24.8
Pierre Vacher
prrvchr at gmail.com
Mon Jan 20 11:31:14 UTC 2025
Hi all,
It seems that starting with LibreOffice for Linux version 24.2, Python is
shipped with LibreOffice.
- LibreOffice for Linux 24.2 offers Python 3.8.
- LibreOffice for Linux 24.8 offers Python 3.9.
If I go into the program folder of LibreOffice 24.8 for Linux and launch
the Python interpreter (ie: ./python), I have:
prrvchr at Asus-E510:/opt/libreoffice24.8/program$ ./python
> Python 3.9.21 (main, Dec 12 2024, 22:55:18)
> [GCC 12.2.1 20221121 (Red Hat 12.2.1-7)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
>
If I use the distutils package to know the value of the variable
*EXT_SUFFIX*, I have:
>>> import distutils.sysconfig as ds
> >>> print(ds.get_config_var("EXT_SUFFIX"))
> *.cpython-3.9.so <http://cpython-3.9.so>*
> >>>
Normally, at least for my local version of Python, the value of *EXT_SUFFIX*
should be:
*.cpython-39-x86_64-linux-gnu.so*
So this is not a big deal but it is causing me a lot of problems.
Can someone explain it to me? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250120/a0f14ddc/attachment.htm>
More information about the LibreOffice
mailing list