Add a ZIP packaging format for Linux? #2817
Replies: 2 comments 4 replies
|
The caveats on a ZIP build are so significant I'm not sure it's advisable as a target. The problem is Linux itself, and the fact that "Linux" isn't a sufficient description of a platform. If you're on Windows or macOS, a binary wheel knows what is available, and that set of binary dependencies is fairly extensive, including everything needed to support a GUI app. On Linux - you can't guarantee anything. The ManyLinux specification exists as the basis for binary compatibility, but it contains... almost nothing. For example, it's impossible to package a GTK app for Linux, because the GTK base libraries aren't part of the ManyLinux interface. PySide6 does publish binary wheels... by including all of Qt in the wheel - which is why the wheels are 200+MB. In order for a "zip" packaging format to work, you'd need to enforce While there will be a subset of apps for which that is an acceptable set of compromises, it's a situation where I can see it being added to Briefcase, and then we spend eternity explaining what I've just explained to a novice Linux user who doesn't understand that the underlying problem lies with Linux as a platform. |
|
FWIW, I explored bundling Python in system packages and got something working: Disclaimer: Entirely generated by Claude Opus 4.7 and not reviewed yet, but I got a package that doesn't rely on the system Python (which is my main goal) and worked on Debian 13 and Ubuntu 22. |
Uh oh!
There was an error while loading. Please reload this page.
Via @abdnh on #1976, on the subject of Linux system packages:
I just found out that AppImage/Flatpak already uses python-build-standalone.
If providing that for system packages is not a good option, what about introducing a zip format? For Anki, that'd actually be our preferred format so we don't have to worry about building system packages. Currently we distribute a zip with some custom install scripts.
All reactions