|
Hi, The issue is packaging and dependencies, I don't want to ask my users to go install the various dependencies in order to use my application but as I understand it from the pywebview installation page there are various dependencies that would need to be installed for each platform.
|
Replies: 2 comments 4 replies
|
Those are not ordinary Python packages. They are normally installed through the OS/vendor package manager or runtime installer ( So I would not try to solve this by making another PyPI package that runs For end users, the usual solution is to stop treating
If you still want a # Ubuntu / GTK backend
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.1
pip install pywebview[gtk]For non-technical end users, an installer or bundled app is the better path |
Linux is a vast heterogenous ecosystem with each distribution may or may not have required dependencies. I believe on some systems it may enough to
pip install pywebview[qt]orpip install pywebview[gtk], while others require installing external dependencies. Install script is probably a correct answer to this problem.On macOS and modern Windows 11
pip installis enough. On older Windows you need to install a webview2 runtime if it is not installed alredady.