• Python kit

    From saito@saitology9@gmail.com to comp.lang.tcl on Fri Nov 22 13:15:30 2024
    From Newsgroup: comp.lang.tcl

    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.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Christian Gollwitzer@auriocus@gmx.de to comp.lang.tcl on Fri Nov 22 20:46:49 2024
    From Newsgroup: comp.lang.tcl

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From saito@saitology9@gmail.com to comp.lang.tcl on Fri Nov 22 19:53:02 2024
    From Newsgroup: comp.lang.tcl

    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.


    --- Synchronet 3.20a-Linux NewsLink 1.114