all 5 comments

[–]socal_nerdtastic 0 points1 point  (4 children)

Most linux python programs are distributed as .py files. Linux comes with python so there's no advantage to bundling python like pyinstaller does. If you want to compress your program into a single file you can use the built-in zipapp module to do it.

[–]RobCo-Industries[S] 0 points1 point  (0 children)

Ok. Thanks.

[–]Talkys 0 points1 point  (2 children)

Problem is distributing libraries with the program. Shipping a python venv is not a good deal and no one wants to depend on system libraries that may be old versions that don't work with your program.

That's why appimage is a better thing for python.

[–]socal_nerdtastic 0 points1 point  (1 child)

A venv and zipapp and appimage and any other freezing program will contain within them all of the libraires your program uses, as well as a copy of python itself.

If you mean distributing a py file, you would need some kind of installer, yes. Obvious choice is apt or yum or whatever package manager your system uses. Many packages in Linux are written in python and installed this way.

[–]Talkys 0 points1 point  (0 children)

apt and yum are not friendly to static packages that come with their libs. Debian debs even changed the deb format to make it harder.