Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Give thought to your reputation. Consider changing name and moving to a new town.


comp / comp.lang.tcl / Re: Python kit

SubjectAuthor
* Python kitsaito
+* Re: Python kitChristian Gollwitzer
|`- Re: Python kitsaito
+* Re: Python kitUwe Schmitz
|`- Re: Python kitsaito
`- Re: Python kitOlivier

1
Subject: Python kit
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 18:15 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: Python kit
Date: Fri, 22 Nov 2024 13:15:30 -0500
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <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 19:15:30 +0100 (CET)
Injection-Info: dont-email.me; posting-host="33cf90b829c65c9e1a2fcaff4fe36315";
logging-data="1355170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OwKKHRO8Nzn+FgZfPedHm"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:c4kJj4MFUh9WAnRBZoyHwNaUXwQ=
Content-Language: en-US
View all headers

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.

Subject: Re: Python kit
From: Christian Gollwitzer
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 19:46 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
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>
View all headers

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

Subject: Re: Python kit
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 00:53 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: Re: Python kit
Date: Fri, 22 Nov 2024 19:53:02 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <vhr91f$1dgv3$1@dont-email.me>
References: <vhqho2$19bd2$1@dont-email.me> <vhqn3b$1ai68$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 23 Nov 2024 01:53:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="22356bb77049d6280a448a2dc2d25047";
logging-data="1491939"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+/xOF53/P7jZsuhQUtMYn"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:0MJVFCa6C8pKkVdv7BuzslE8+PY=
In-Reply-To: <vhqn3b$1ai68$1@dont-email.me>
Content-Language: en-US
View all headers

On 11/22/2024 2:46 PM, Christian Gollwitzer wrote:
> 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.
>

Thank you so very much for the comprehensive reply.

Subject: Re: Python kit
From: Uwe Schmitz
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 25 Nov 2024 11:09 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: schmitzu@mail.de (Uwe Schmitz)
Newsgroups: comp.lang.tcl
Subject: Re: Python kit
Date: Mon, 25 Nov 2024 12:09:02 +0100
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <vi1lse$2o18b$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: Mon, 25 Nov 2024 12:09:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c9f100aa5a7a7e489ed0ee1e401b08f8";
logging-data="2884875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VOdu7827TjWqkQxGSKXz4ZeZpXtZirnI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iiiF0sm0TsmXN6VUmUxN6kmV/iI=
In-Reply-To: <vhqho2$19bd2$1@dont-email.me>
Content-Language: de-DE
View all headers

Am 22.11.2024 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.

I remember using Nuitka (https://nuitka.net/) some time ago.
And I was quite impressed. It appears to be actively maintained.

Subject: Re: Python kit
From: saito
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Mon, 25 Nov 2024 18:46 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: saitology9@gmail.com (saito)
Newsgroups: comp.lang.tcl
Subject: Re: Python kit
Date: Mon, 25 Nov 2024 13:46:21 -0500
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vi2glt$2uapu$1@dont-email.me>
References: <vhqho2$19bd2$1@dont-email.me> <vi1lse$2o18b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 25 Nov 2024 19:46:22 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f590527ea94dcee716df3079f419862f";
logging-data="3091262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ULalaRo/BIUHEcSKYcIdS"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:T0obRt8jJseTDui6nxtIbcCZ3kQ=
Content-Language: en-US
In-Reply-To: <vi1lse$2o18b$1@dont-email.me>
View all headers

On 11/25/2024 6:09 AM, Uwe Schmitz wrote:

>
> I remember using Nuitka (https://nuitka.net/) some time ago.
> And I was quite impressed. It appears to be actively maintained.
>

Thanks! This looks nice.

Subject: Re: Python kit
From: Olivier
Newsgroups: comp.lang.tcl
Date: Tue, 26 Nov 2024 16:49 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!newsgrouper.org.uk!.POSTED!not-for-mail
From: user1108@newsgrouper.org.uk.invalid (Olivier)
Newsgroups: comp.lang.tcl
Subject: Re: Python kit
References: <vhqho2$19bd2$1@dont-email.me>
Date: Tue, 26 Nov 2024 16:49:05 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1732639745-1108@newsgrouper.org.uk>
Injection-Info: newsgrouper.org.uk; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user1108
Injection-Date: Tue, 26 Nov 2024 16:49:05 GMT
User-Agent: Newsgrouper/0.6.6
View all headers

saito <saitology9@gmail.com> posted:

From there https://github.com/amykyta3/tclpython/

it is said "This package allows the execution of Python code from a Tcl interpreter".

Is'nt there a Tcl interpreter inside a Tclkit ? It could work ?

Olivier.

> 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.

1

rocksolid light 0.9.8
clearnet tor