Bug 162786 - Ship Python package manager (PIP) with LibreOffice internal Python
Summary: Ship Python package manager (PIP) with LibreOffice internal Python
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-Python Dev-related
  Show dependency treegraph
 
Reported: 2024-09-04 10:22 UTC by Hossein
Modified: 2024-09-05 13:21 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2024-09-04 10:22:07 UTC
Description:
PIP is the famous Python package manger which is widely used to install and manage Python packages. This ticket is the feature request for installing and shipping PIP with LibreOffice core builds.

https://en.wikipedia.org/wiki/Pip_(package_manager)

Currently, PIP is not shipped with LibreOffice internal Python. There are multiple reasons to have that inside LibreOffice core. I can enumerate at least these reasons:

1. Installing PIP with extensions have issues, I myself have issues installing it on Linux.
2. Having PIP in core removes the need to create a LO extension for each and every PIP package.
3. Having PIP inside core lets other developers test it on different platforms, add more functionalities and make it robust.
4. It makes easier for the Python extensions to use other Python packages.

Therefore, installing PIP can be an important enhancement for LibreOffice internal Python.
Comment 1 Mike Kaganski 2024-09-04 10:37:29 UTC
I set it to NEW; it's really wanted feature. But I add Michael to CC, possibly there are some considerations to take care about? (IIRC, Michael was the last to remove some Python packages; if I'm mistaken, I apolojize).
Comment 2 Mike Kaganski 2024-09-04 11:40:20 UTC
Another way to see how it's important is https://ask.libreoffice.org/search?q=python%20pip
Comment 3 Roman Kuznetsov 2024-09-04 17:51:17 UTC
Let's just use system Python in Windows, in Linux and in macOS.
Or another variant - add full Python to LibreOffice.
We will have no problems then with any standard Python modules/libraries that LO's Python doesn't have
Comment 4 Mike Kaganski 2024-09-04 18:01:22 UTC
(In reply to Roman Kuznetsov from comment #3)

There is no system python on Windows. We can't do that. As well as on macOS, by the way. Please don't suggest this, because this simply distracts the discussion.
Comment 5 Michael Stahl (allotropia) 2024-09-05 09:04:48 UTC
i don't remember why pip is omitted currently, probably because it's not needed to run extensions? but you are right, it could be useful for developing extensions...

i guess we want to avoid bundling python modules that have additional external dependencies, and GUI toolkits, but other than that, i don't see any downsides.
Comment 6 Roman Kuznetsov 2024-09-05 12:43:59 UTC
(In reply to Mike Kaganski from comment #4)
> (In reply to Roman Kuznetsov from comment #3)
> 
> There is no system python on Windows. We can't do that. As well as on macOS,
> by the way. 

If it will be a solution we can suggest user to download and install it from Python official site.
Btw, macOS has a Python inside, but it's a strange Python (like our Python inside LibreOffice) and all Python devs advise to install Python from its official site too =)

> Please don't suggest this, because this simply distracts the
> discussion.

this discussion can give us again only partially solution of global problem that can have (and should have) one full solution by using full functional Python by one or another way.