• Re: Python kit

    From Christian Gollwitzer@21:1/5 to All on Fri Nov 22 20:46:49 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Uwe Schmitz@21:1/5 to All on Mon Nov 25 12:09:02 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Olivier@21:1/5 to All on Tue Nov 26 16:49:05 2024
    saito <[email protected]> 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)