How to package a Python command line app?

Anssi Saari as at sci.fi
Fri Dec 10 12:38:34 EST 2021


Manfred Lotz <ml_news at posteo.de> writes:

> pyinstaller worked fine taking care of message.py and typer module. But
> as said in my other reply it is glibc version dependent.

Perhaps the included freeze.py script (included in the CPython source
that is, in Tools/freeze) is worth considering as well. Although it also
seems to create a dynamic executable by default (I tried with your hello
example), it seems to me it's possible to edit the generated makefile
and replace -shared with -static in a few places. Didn't try that
though.


More information about the Python-list mailing list