Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Barry Scott
> On 8 Jan 2020, at 16:02, Christopher Barker wrote: > > On Wed, Jan 8, 2020 at 1:49 AM Abdur-Rahmaan Janhangeer > wrote: > Have a look at this write up about the horror that is zip file name handling. > > https://marcosc.com/2008/12/zip-files-and-encoding-i-hate

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Rhodri James
On 08/01/2020 18:08, many people wrote lots of stuff... Folks, could we pick one list and have the discussion there, rather than on both python-list and python-ideas? Getting *four* copies of Andrew's emails is a tad distracting :-) -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Andrew Barnert via Python-list
On Jan 8, 2020, at 01:09, Abdur-Rahmaan Janhangeer wrote: > > Using the wheel-included zip (A), we can generate another zip file (B) with > the packages installed. That generated zip file is then executed. But that generated zip B doesn’t have a trustable hash on it, so how can you execute it?

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Andrew Barnert via Python-list
On Jan 8, 2020, at 01:09, Abdur-Rahmaan Janhangeer wrote: > > But now, a malicious program might try to modify the info file > and modify the hash. One way to protect even the metadata is > to hash the entire content > > folder/ > file.py # we can add those in a folder if needed > __main

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Christopher Barker
On Wed, Jan 8, 2020 at 1:24 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > But a thought on that -- you may be able to accomplish something similar >> with conda, "conda constructor", and "conda run". -- or a new tool built >> from those. The idea is that the first time you ran your

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Christopher Barker
On Wed, Jan 8, 2020 at 1:49 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Have a look at this write up about the horror that is zip file name >> handling. >> >> https://marcosc.com/2008/12/zip-files-and-encoding-i-hate-you/ >> >> This has been a pain point at work. >> > I'm pretty s

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Abdur-Rahmaan Janhangeer
On Wed, 8 Jan 2020, 02:15 Barry, wrote: > > Have a look at this write up about the horror that is zip file name > handling. > > https://marcosc.com/2008/12/zip-files-and-encoding-i-hate-you/ > > This has been a pain point at work. > Since zipapp did not touch the subject, i won't either unless w

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-08 Thread Abdur-Rahmaan Janhangeer
On Wed, 8 Jan 2020, 11:09 Christopher Barker, wrote: > > But a thought on that -- you may be able to accomplish something similar > with conda, "conda constructor", and "conda run". -- or a new tool built > from those. The idea is that the first time you ran your "app", it would > install its dep

Re: [Python-ideas] Enhancing Zipapp

2020-01-08 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Wed, Jan 8, 2020 at 1:32 AM Brett Cannon wrote: > > > This would be a packaging detail so not something to be specified in the stdlib. Yes, the module opening the zip will look for it >> - [ ] Signing mechanism >> >> M

Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Wed, Jan 8, 2020 at 2:20 AM Barry wrote: > > You are offing up a competitor against python wheels > This proposal proposes to inlcude python wheels in

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-07 Thread Christopher Barker
On Mon, Jan 6, 2020 at 10:50 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > - More metadata > good idea, and simple. > - Integrity check with hashing > - Protecting the meta data > This could be a big challenge -- and I'm not expert, so have no idea what the issues are. > - Bu

Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Barry
> On 7 Jan 2020, at 01:48, Abdur-Rahmaan Janhangeer > wrote: > >  > > >> On Tue, 7 Jan 2020, 01:57 Barry Scott, wrote: >> >> >> Please cover the pro's and con's of the alernatives that have been raised as >> comments >> on this idea, as is usually done for a PEP style document. > > >

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-07 Thread Barry
> On 7 Jan 2020, at 02:40, Christopher Barker wrote: > >  > I’m a bit unclear on how far this goes: is it just a bit more specific with > more meta-data standards? > > Or are you aiming for something that will run without a Python install? > > Other issues: > > Are you aiming for a bundle

Re: [Python-ideas] Enhancing Zipapp

2020-01-07 Thread Brett Cannon
reason, for easing the running of > archives. > Maybe the package manager idea came from listening to people talking about > packaging and pex and comparing it with package-managers like homebrew > and concluded that pex and hence zipapp is not worth it and people woul

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Tue, Jan 7, 2020 at 6:40 AM Christopher Barker wrote: > I’m a bit unclear on how far this goes: is it just a bit more specific > with more meta-data sta

Re: [Python-ideas] Re: Enhancing Zipapp

2020-01-06 Thread Christopher Barker
I’m a bit unclear on how far this goes: is it just a bit more specific with more meta-data standards? Or are you aiming for something that will run without a Python install? Other issues: Are you aiming for a bundle that can run on multiple platforms? If so, then it’ll have to have a way to bund

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Tue, 7 Jan 2020, 01:57 Barry Scott, wrote: > > > Please cover the pro's and con's of the alernatives that have been raised > as comments > on this idea, as is usually done for a PEP style document. > Thanks, i don't have much experience writing peps and if i don't bug you may i ask what "alte

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Barry Scott
> On 6 Jan 2020, at 19:34, Abdur-Rahmaan Janhangeer > wrote: > > Note: draft simplified Please cover the pro's and con's of the alernatives that have been raised as comments on this idea, as is usually done for a PEP style document. Also beware that zip file format does not include the enc

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
On Tue, Jan 7, 2020 at 12:15 AM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > Proposing to include pa > please ignore that part -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius On Mon, Jan 6, 2020 at 11:53 PM Chris Angelico wrote: > On Tue, Jan 7, 2020 at 6:37 AM Abdur-Rahmaan Janhangeer > wrote: > Where is this directory? What i

Re: [Python-ideas] Enhancing Zipapp

2020-01-06 Thread Chris Angelico
On Tue, Jan 7, 2020 at 6:37 AM Abdur-Rahmaan Janhangeer wrote: > When running such an app, the interpreter will check first if the app-specific > site-packages folder is empty, if not, install the wheels. This provides > package- > freezing ability. The only downside is longer first-run time. Wh

Enhancing Zipapp

2020-01-06 Thread Abdur-Rahmaan Janhangeer
oblem at all -- This proposal aims at enhancing zipapp. Zipapp solved the problem. Zipapp had an aim. This proposal aims at helping zipapp better accompplish it's aim. References [1] https://pynsist.readthedocs.io/en/latest/ [2] https://www.pyinstaller.org [3] https://www.python.org/dev/peps/pep