On 19 September 2015 at 06:49, Terry Reedy <tjre...@udel.edu> wrote: > On 9/19/2015 1:24 AM, Stephen J. Turnbull wrote: >> >> Barry Warsaw writes: >> >> > One thing that came up in a similar discussion is pip, and the >> > suggested move to `python -m pip`, which makes a lot of sense. >> > However, *inside* a virtualenv, there's no ambiguity about the >> > Python version associated with direct `pip` invocation, so it still >> > makes sense to install that there. >> >> And then the poor newbie who's just following orders (eg, in >> mailman3/src/mailman/docs/INSTALL<wink/>) will try pip'ing outside of >> the virtualenv for some reason, and have a WTF experience. I think we >> should KISS the pip command good-bye. >> >> A somewhat different way I look at it: the OS provides a shell, and >> you invoke aptitude (CLI) or synaptic (from clickety-clickety GUI >> shell) from that OS shell to manage OS packages. By analogy (always >> slippery but this one feels good to me), to manage python packages you >> should be working in the Python "shell". > > > It is somewhat possible to do this by importing pip.main and translating pip > command line calls to main() calls. I reported proof-of-concept experiments > on issue 23551. To be practical, this should be wrapped in a tkinter gui. > Once written, I will add it to the Idle menu. Other gui shells, could and > probably would do the same.
I've raised https://github.com/pypa/pip/issues/3121 as a starting point for discussion on how pip could support a high-level Python API (i.e. make pip.main a bit less "you're on your own"). I don't have any plans right now to work on it, but it provides somewhere to centralise any discussion (and of course, if anyone *else* feels like contributing patches, that'd be great too ;-)) Paul _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com