| Deutsch English Français Italiano |
|
<vhqn3b$1ai68$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Christian Gollwitzer <auriocus@gmx.de>
Newsgroups: comp.lang.tcl
Subject: Re: Python kit
Date: Fri, 22 Nov 2024 20:46:49 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <vhqn3b$1ai68$1@dont-email.me>
References: <vhqho2$19bd2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Nov 2024 20:46:51 +0100 (CET)
Injection-Info: dont-email.me; posting-host="133ff20ac72b38ee5e844d3a5b481b35";
logging-data="1394888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pR4DsVJQbfRumQ9fHkKyL4jy5ScQCBgw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:935QWmLnAeD/JCqog5EJN0Kl4Fg=
In-Reply-To: <vhqho2$19bd2$1@dont-email.me>
Bytes: 2425
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