Amourspirit / python_libre_pythonista_ext

Apache License 2.0
98 stars 5 forks source link

How about complete Python packages cleanup upon extension removal #3

Closed LibreOfficiant closed 1 month ago

LibreOfficiant commented 2 months ago

At startup the extension loads a great deal of pip packages.

I wish I could control pip packages deletion upon removal of LibrePythonista.oxt from LibreOffice.

Amourspirit commented 1 month ago

When LibreOffice installs it also install python packages. This you already know. However, I don't see removing python packages when extension is removed being implemented.

The reason for this is the User may have installed python packages via other means or extension. If the user installed packages that may also be used by LibrePythonista then their configuration may fail when LibrePythonista is uninstalled. To avoid this it is best to not automatically uninstall the python packages.

Also it could cause issues if an extension is uninstalling python packages while the extension is be removed from LibreOffice. If there was a failure it may leave LibreOffice in a broken state.

Maybe a List of packages installed could be in the documentation somewhere. This way if the user wanted to unistall them with some other tool the list would be available.