[prev in list] [next in list] [prev in thread] [next in thread]
List: python-distutils-sig
Subject: Re: [Distutils] The future of invoking pip
From: Chris Barker <chris.barker () noaa ! gov>
Date: 2015-11-13 17:39:01
Message-ID: CALGmxELu=cw3HXYxj9rJ1SJyWO1VjMnZQMG=8D6Mtjj1m81+4Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Thu, Nov 12, 2015 at 11:16 PM, Nathaniel Smith <njs@pobox.com> wrote:
> > > If we waved our hands and were able to magically make Python package
> >> management perfect, what would that look like?
> >
> > well, I think the command would be:
> >
> > python install package_name
> >
> > I know there are good reasons to keep package installer development out
> of
> > core, but if have ensurepip-- we could do this.
>
> 1) What about 'pip uninstall', 'pip freeze', 'pip list', 'pip show',
> 'pip search', 'pip wheel'?
>
hmm -- half of those are "advanced" features, but yes, there are a few that
newbies want easy access to, so how about :
python pip install
python pip search
...
just doesn't need the "-m" -- which is a bit of advanced python voodoo
(OK, not very advanced...)
or maybe:
python install search
python install list
python install ....
though that would make it tough to have a package called "search", etc...
what I'm getting at is that it makes plenty of sense for package management
to be seen as a feature of the python interpreter itself -- maybe slightly
more typing that "pip" (less than easy_install?) -- but no one is going to
be surprised that you use python to manage your python installation.
\2) If it requires python 3.6 it's kinda a non-starter...
>
well, this was a response to "magically make Python package management
perfect"
but anyway, there is always 2.7.11 :-) -- or would it even be possible to
hack a change to the command line handling with a package install? somehow
I doubt it.
and it may not be SO bad to require the -m pip for all legacy versions
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 12, 2015 \
at 11:16 PM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" \
target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span \
class="">> > If we waved our hands and were able to magically make Python \
package<br> >> management perfect, what would that look like?<br>
><br>
> well, I think the command would be:<br>
><br>
> python install package_name<br>
><br>
> I know there are good reasons to keep package installer development out of<br>
> core, but if have ensurepip-- we could do this.<br>
<br>
</span>1) What about 'pip uninstall', 'pip freeze', 'pip \
list', 'pip show',<br> 'pip search', 'pip \
wheel'?<br></blockquote><div><br></div><div>hmm -- half of those are \
"advanced" features, but yes, there are a few that newbies want easy access \
to, so how about :</div><div><br></div><div>python pip install</div><div>python pip \
search</div><div>...</div><div><br></div><div>just doesn't need the \
"-m" -- which is a bit of advanced python voodoo (OK, not very \
advanced...)</div><div><br></div><div>or maybe:</div><div><br></div><div>python \
install search</div><div>python install list</div><div>python install \
....</div><div><br></div><div>though that would make it tough to have a package \
called "search", etc...</div><div><br></div><div>what I'm getting at is \
that it makes plenty of sense for package management to be seen as a feature of the \
python interpreter itself -- maybe slightly more typing that "pip" (less \
than easy_install?) -- but no one is going to be surprised that you use python to \
manage your python installation.</div><div><br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">\2) \
If it requires python 3.6 it's kinda a non-starter...<span class=""><font \
color="#888888"><br> </font></span></blockquote><div><br></div><div>well, this was a \
response to "magically make Python package management \
perfect"</div><div><br></div><div>but anyway, there is always 2.7.11 :-) -- or \
would it even be possible to hack a change to the command line handling with a \
package install? somehow I doubt it.</div><div><br></div><div>and it may not be SO \
bad to require the -m pip for all legacy \
versions</div><div><br></div><div>-CHB</div><div><br></div></div><div><br></div>-- \
<br><div class="gmail_signature"><br>Christopher Barker, \
Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R \
(206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 \
fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a \
href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div> \
</div></div>
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic