Re: How to package a Python command line app?

2021-12-10 Thread Manfred Lotz
On Thu, 9 Dec 2021 21:23:58 +0100
"Peter J. Holzer"  wrote:

> On 2021-12-09 19:35:37 +0100, Manfred Lotz wrote:
> > I played with pyinstaller which worked fine. However, it builds a
> > dynamic executable and thus it is glibc version dependent. Means, I
> > have to build different executables for differen glibc versions.  
> 
> Just build it for the oldest version.

Wasn't aware of that.

>  Even if you don't, it may not
> matter. I just compiled a hello world program on Ubuntu 20 and ran it
> on Debian 6 (which is 10 years old). Obviusly a real program has more
> opportunities to run into compatibility problems, but glibc doesn't
> change all that much.
> 
> hp
> 

I have build an executable with pyinstaller on Ubuntu 20.04 and it
didn't run on Redhat 8.4.

Doing it the other way round helps indeed, i.e. building on Redhat 8.4
and then it runs on Ubuntu 20.04. 

Thank you.


-- 
Manfred

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to package a Python command line app?

2021-12-10 Thread Manfred Lotz
On Thu, 9 Dec 2021 13:51:00 -0700
Mats Wichmann  wrote:

> On 12/9/21 11:35, Manfred Lotz wrote:
> 
> > I played with pyinstaller which worked fine. However, it builds a
> > dynamic executable and thus it is glibc version dependent. Means, I
> > have to build different executables for differen glibc versions.
> > 
> > So, it seems I will have to check how executable zip archives are
> > supposed to work.
> >   
> 
> For me at least, I'm still not sure what you are trying to accomplish.
> 

I like to offer my command line app to some people who are not really
command line geeks. Means, I don't want to have to tell them to install
packages via pip and stuff like that. Simply take a file, make it
executable and run it.


-- 
Manfred





-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to package a Python command line app?

2021-12-10 Thread Anssi Saari
Manfred Lotz  writes:

> pyinstaller worked fine taking care of message.py and typer module. But
> as said in my other reply it is glibc version dependent.

Perhaps the included freeze.py script (included in the CPython source
that is, in Tools/freeze) is worth considering as well. Although it also
seems to create a dynamic executable by default (I tried with your hello
example), it seems to me it's possible to edit the generated makefile
and replace -shared with -static in a few places. Didn't try that
though.
-- 
https://mail.python.org/mailman/listinfo/python-list


Sad news: Fredrik Lundh ("Effbot") has passed away

2021-12-10 Thread Roel Schroeven
Message from Guido van Rossum 
(https://mail.python.org/archives/list/python-...@python.org/thread/36Q5QBILL3QIFIA3KHNGFBNJQKXKN7SD/):


A former core dev who works at Google just passed the news that 
Fredrik Lundh (also known as Effbot) has died.


Fredrik was an early Python contributor (e.g. Elementtree and the 're' 
module) and his enthusiasm for the language and community were 
inspiring for all who encountered him or his work. He spent countless 
hours on comp.lang.python answering questions from newbies and 
advanced users alike.


He also co-founded an early Python startup, Secret Labs AB, which 
among other software released an IDE named PythonWorks. Fredrik also 
created the Python Imaging Library (PIL) which is still THE way to 
interact with images in Python, now most often through its Pillow 
fork. His effbot.org site was a valuable resource for generations of 
Python users, especially its Tkinter documentation.


Fredrik's private Facebook page contains the following message from 
November 25 by Ylva Larensson (translated from Swedish):


"""

It is with such sorrow and pain that I write this. Fredrik has left us 
suddenly.


"""

A core dev wrote: "I felt privileged to be able to study Fredrik's 
code and to read his writing. He was a huge asset to our community in 
the early days. I enjoyed his sense of humor as well. I'm sad that he 
passed away."


We will miss him.



--
"Your scientists were so preoccupied with whether they could, they didn't
stop to think if they should"
-- Dr. Ian Malcolm

--
https://mail.python.org/mailman/listinfo/python-list