[Python-ideas] Packaging Apps (Was Adding PyInstaller to the stdlib)

2020-11-24 Thread Abdur-Rahmaan Janhangeer
Greetings list, > Then I would suggest starting a new thread, Long overdue i guess. My view on the topic is like Mr Moore with the exception that i'm for native capabilities to be in the stdlib. Since Zipapp does not seem to go the C-extension route, i propose a new tool that turn projects into i

[Python-ideas] Re: A pypi-based app store solution for platform specific installation

2020-11-24 Thread Wes Turner
>From "[Distutils] pip and missing shared system system library" https://mail.python.org/archives/list/distutils-...@python.org/message/7TCZJT2RDE36BJKUDU6JVTIUYHGVDVQY/ : > Existing workarounds for building and distributing portable binaries: > > W/ shared library dependencies: > - auditwheel & m

[Python-ideas] Circular Indexing and FOR loop minimization

2020-11-24 Thread Mathew M. Noel via Python-ideas
As discussed earlier on the post on 'Circular Indexing', considering interpreting indices that lie outside the range 0 to n-1 modulo n for list indexing. Thus element n corresponds to element 0, n+1 to element 1 and so on. This has two consequences: 1.) Makes the Python convention of interpret

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Ethan Furman
On 11/20/20 8:41 PM, Brendan Barnwell wrote: On 2020-11-20 01:51, Steven D'Aprano wrote: If that's really what you want, you probably should look at making a way to run Python apps in the browser. Everyone has an OS, everyone has a browser, GUI browsers have similar looking look-and-feels, the

[Python-ideas] Re: A pypi-based app store solution for platform specific installation

2020-11-24 Thread Oscar Benjamin
On Sat, 21 Nov 2020 at 09:30, Ronald Oussoren via Python-ideas wrote: > > > > > On 20 Nov 2020, at 16:42, Ricky Teachey wrote: > > > > I was reading the pyinstaller thread and had this idea but didn't want to > > hijack. > > > > Maybe a wild idea, and very possible totally impractical or hopeles

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Chris Angelico
On Wed, Nov 25, 2020 at 12:03 PM Brendan Barnwell wrote: > > On 2020-11-24 16:47, Chris Angelico wrote: > > On Wed, Nov 25, 2020 at 10:29 AM Brendan Barnwell > > wrote: > >> > >> On 2020-11-24 00:05, Chris Angelico wrote: > >> >> > > >> >> >I'm still confused what the point is of a zipapp, if it

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread MRAB
On 2020-11-25 00:42, Greg Ewing wrote: On 25/11/20 12:14 pm, Chris Angelico wrote: If you want a perfectly out-of-the-box app, you're probably going to have to stick to Tkinter. Which is only bundled with Python on Windows, as far as I know. It's also bundled with Python on Raspbian. ___

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Brendan Barnwell
On 2020-11-24 16:47, Chris Angelico wrote: On Wed, Nov 25, 2020 at 10:29 AM Brendan Barnwell wrote: On 2020-11-24 00:05, Chris Angelico wrote: >> > >> >I'm still confused what the point is of a zipapp, if it can't be a proper point and click GUI thing, and it can't use any compiled extensions

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Chris Angelico
On Wed, Nov 25, 2020 at 10:29 AM Brendan Barnwell wrote: > > On 2020-11-24 00:05, Chris Angelico wrote: > >> > > >> >I'm still confused what the point is of a zipapp, if it can't be a proper > >> >point and click GUI thing, and it can't use any compiled extensions. How > >> >it is it better than

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Greg Ewing
On 25/11/20 12:14 pm, Chris Angelico wrote: If you want a perfectly out-of-the-box app, you're probably going to have to stick to Tkinter. Which is only bundled with Python on Windows, as far as I know. -- Greg ___ Python-ideas mailing list -- python

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Greg Ewing
On 25/11/20 11:48 am, Steven D'Aprano wrote: In a language without declarations, how do you know that something is unused? Personally, I don't mind if I have to *tell* it what I'm using. I don't insist on the stripping-out being automatic, and I would actually prefer it not to be. To support t

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Brendan Barnwell
On 2020-11-24 00:05, Chris Angelico wrote: > >I'm still confused what the point is of a zipapp, if it can't be a proper point and click GUI thing, and it can't use any compiled extensions. How it is it better than a console_script and a pip-installed package?? > It CAN be a proper point-and-cl

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Chris Angelico
On Wed, Nov 25, 2020 at 10:13 AM Greg Ewing wrote: > > On 24/11/20 9:05 pm, Chris Angelico wrote: > > It CAN be a proper point-and-click GUI thing. You can have a fully > > executable Python script if it has no dependencies (just distribute a > > single .py file with a shebang at the top) ... > >

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Greg Ewing
On 24/11/20 9:05 pm, Chris Angelico wrote: It CAN be a proper point-and-click GUI thing. You can have a fully executable Python script if it has no dependencies (just distribute a single .py file with a shebang at the top) ... But to most people a "proper point and click GUI thing" includes hav

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Steven D'Aprano
On Mon, Nov 23, 2020 at 11:56:47AM +1300, Greg Ewing wrote: > On 22/11/20 4:31 pm, Christopher Barker wrote: > >unfortunately, that's not how most python packages are set up -- you > >install the whole thing at once. As an example, it's really tricky to > >use even one function from scipy without

[Python-ideas] Re: Circular Indexing

2020-11-24 Thread Richard Damon
On 11/24/20 2:36 PM, Mathew M. Noel via Python-ideas wrote: > > Python uses an index of -1 to index the last element in a list. Since > -1 occurs before 0 we might think of the elements of the linear list > are being bent into a circle making the last element occur before the > 0th element. Conside

[Python-ideas] Re: Circular Indexing

2020-11-24 Thread Steele Farnsworth
I believe this would be simple to implement when it's needed by subclassing `collections.UserList` and wrapping this functionality around `__getitem__`, `__setitem__`, and `__delitem__`. On Tue, Nov 24, 2020, 2:38 PM Mathew M. Noel via Python-ideas < python-ideas@python.org> wrote: > Python uses

[Python-ideas] Re: Circular Indexing

2020-11-24 Thread edwin
November 24, 2020 2:36 PM, "Mathew M. Noel via Python-ideas" mailto:python-ideas@python.org?to=%22Mathew%20M.%20Noel%20via%20Python-ideas%22%20)> wrote: [snip] This feature can prove to be extremely useful. It can also prove to be extremely dangerous. "list index out of range" errors can

[Python-ideas] Circular Indexing

2020-11-24 Thread Mathew M. Noel via Python-ideas
Python uses an index of -1 to index the last element in a list. Since -1 occurs before 0 we might think of the elements of the linear list are being bent into a circle making the last element occur before the 0th element. Consider a list with n elements: it would be perfectly reasonable to addre

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Ronald Oussoren via Python-ideas
> On 24 Nov 2020, at 11:58, Antoine Pitrou wrote: > > On Tue, 24 Nov 2020 10:23:10 + > Paul Moore wrote: >> On Tue, 24 Nov 2020 at 10:18, Antoine Pitrou wrote: >>> >>> On Mon, 23 Nov 2020 08:09:07 + >>> Paul Moore wrote: But it's not as limiting as you suggest - it *doe

[Python-ideas] JSON loading

2020-11-24 Thread Stestagg
I was thinking about the "Load JSON file as single line" thread from a bit back, and had an idea for a neat solution, albeit one that has potential stylistic issues. Idea: Create two new methods on pathlib.Path objects: Path.load(loader, **kwargs) and Path.dump(dumper, obj, **kwargs) Her

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Antoine Pitrou
On Tue, 24 Nov 2020 10:23:10 + Paul Moore wrote: > On Tue, 24 Nov 2020 at 10:18, Antoine Pitrou wrote: > > > > On Mon, 23 Nov 2020 08:09:07 + > > Paul Moore wrote: > > > > > > But it's not as limiting as you suggest - it *does* preclude most > > > scientific use (because of numpy etc)

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Paul Moore
On Tue, 24 Nov 2020 at 10:18, Antoine Pitrou wrote: > > On Mon, 23 Nov 2020 08:09:07 + > Paul Moore wrote: > > > > But it's not as limiting as you suggest - it *does* preclude most > > scientific use (because of numpy etc) but (for example) a large number > > of web libraries are pure Python.

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Antoine Pitrou
On Mon, 23 Nov 2020 08:09:07 + Paul Moore wrote: > > But it's not as limiting as you suggest - it *does* preclude most > scientific use (because of numpy etc) but (for example) a large number > of web libraries are pure Python. Not sure what you mean here, but while Web frameworks themselves

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Paul Moore
On Tue, 24 Nov 2020 at 07:47, Christopher Barker wrote: > indeed I am. But also, where I need this sort of thing is for desktop GUIs > (wxPython in my case), another heavy user of compiled extensions. > > I'm still confused what the point is of a zipapp, if it can't be a proper > point and click

[Python-ideas] Re: Adding PyInstaller to the standard library

2020-11-24 Thread Chris Angelico
On Tue, Nov 24, 2020 at 6:47 PM Christopher Barker wrote: > > On Mon, Nov 23, 2020 at 12:09 AM Paul Moore wrote: >> >> On Mon, 23 Nov 2020 at 03:37, Christopher Barker wrote: >> > My feeling is that it hits middle ground that isn't very useful. If you >> > can count on your users having a prope