Cimbali / pympress

Pympress is a simple yet powerful PDF reader designed for dual-screen presentations
https://cimbali.github.io/pympress/
GNU General Public License v2.0
1.14k stars 88 forks source link

Recomend using pipx instead of pip #312

Closed ChausseBenjamin closed 4 months ago

ChausseBenjamin commented 6 months ago

Many distributions now recommend against using pip to install packages outside of a virtual environment since doing otherwise can break certain package managers. The recommended way of installing packages is to use pipx.

I just tried doing so with your application and this is what was necessary

pipx install pympress
pipx inject pympress pycairo pygobject

The software works great doins so. I just that it would be a nice addition/correction inside the README and in the documentation of the package.

Have a nice one ;)

complanar commented 6 months ago

This seems a good idea, but does not work in all environments. E.g. this way gstreamer or vlc may not found. Embedded videos can not be played. Works when install via pip (at least for me).

Cimbali commented 6 months ago

Many distributions now recommend against using pip to install packages

Yes there’s been this push even within pip. I must say I’ve silenced all these warnings with break-system-packages = true (which is a quite aggressive option name) but we shouldn’t expect users to install via a deprecated way.

Before we update install instructions, I think we have to look at what the state of the situation is:

We also need to review the impact of using pip on all relevant distributions.

Cimbali commented 4 months ago

Ok I’ve had to rewrite the error message and add some significant caveats to the python-installed troubleshooting, but the information should now recommend the proper way of installing (pipx or venv + pip, with system-site-packages to find dependencies) with up-to-date information on best practices and the desktop integration limitations.