[Distutils] Installing packages using pip

Alexander Walters tritium-list at sdamon.com
Sat Nov 14 13:48:51 EST 2015


I perhaps can support added dialogs to IDLE to manage packages (having 
it shell out to pip, if no api is forthcoming), but I don't think I can 
support having the repl inside of IDLE intercept pip's command line 
syntax and do anything OTHER than giving a better error message.

On 11/14/2015 06:37, Oscar Benjamin wrote:
>
>
> On 14 Nov 2015 11:12, "Paul Moore" <p.f.moore at gmail.com 
> <mailto:p.f.moore at gmail.com>> wrote:
> >
> > On 13 November 2015 at 23:38, Nathaniel Smith <njs at pobox.com 
> <mailto:njs at pobox.com>> wrote:
> > > But details of R's execution model make this easier to do.
> >
> > Indeed. I don't know how R works, but Python's module caching
> > behaviour would mean this would be full of surprising and confusing
> > corner cases ("I upgraded but I'm still getting the old version" being
> > the simplest and most obvious one).
> >
> > > Maybe it could be supported for the special case of installing new 
> packages with no upgrades
>
> Maybe it could prompt the user that the interpreter will need to be 
> restarted for the changes to take effect. IDLE runs the interactive 
> interpreter in a separate process so it could restart the subprocess 
> without closing the GUI (after prompting the user with a 
> restart/continue dialogue).
>
> I'm not sure if the standard interpreter would be able to relaunch 
> itself but it could at least exit and tell the user to restart (after 
> a yes/no question in the terminal). The command could also be limited 
> to the when the interpreter is in interactive mode.
>
> How it works in the terminal is less important to me than how it works 
> in IDLE though; being able to teach how to use Python through IDLE 
> (deferring discussion of terminals etc) is useful for introductory 
> programming classes.
>
> --
> Oscar
>
>
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20151114/2430dc79/attachment.html>


More information about the Distutils-SIG mailing list