Re: Python kit

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Python kit
De : auriocus (at) *nospam* gmx.de (Christian Gollwitzer)
Groupes : comp.lang.tcl
Date : 22. Nov 2024, 20:46:49
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhqn3b$1ai68$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 22.11.24 um 19:15 schrieb saito:
Is there something in the Python world that is similar to a tclkit? A minimal run-time environment that ideally consists of a single file? I was going to post it to the python group but I am not sure I can properly explain the concept and do it justice.
There is no canonical solution but several possibilities.
There is "pyinstaller" which similarly can create a single-file executable embedding an arbitrary script. It comes with a static analyzer which tries to automatically download/package the dependencies. Problem is the maintenance of it, it used to be a hobby project.
You can also package up a Python script as a zip file, and run this directly from a python interpreter. I believe the zipkit facility of Tcl 9 is inspired by it. Contrary to pyinstaller, the zip solution cannot load binary extensions.
Another one is py2exe, which, I think, only runs on Windows.
In my humble experience, the Tclkit solution is more solid than the Python solutions, in that it doesn't break as easily when you update some of the dependencies. For pyinstaller, I always had to tweak the configuration script a little when the libraries have changed (I'm using matplotlib, which is a HUGE library). OTOH the automatic dependency resolution is a very nice feature, especially considering the vast Python library ecosystem.
            Christian

Date Sujet#  Auteur
22 Nov 24 * Python kit6saito
22 Nov 24 +* Re: Python kit2Christian Gollwitzer
23 Nov 24 i`- Re: Python kit1saito
25 Nov 24 +* Re: Python kit2Uwe Schmitz
25 Nov 24 i`- Re: Python kit1saito
26 Nov 24 `- Re: Python kit1Olivier

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal