[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-distutils-sig
Subject:    Re: [Distutils] New Design Landed in Warehouse
From:       Wes Turner <wes.turner () gmail ! com>
Date:       2015-11-23 18:33:38
Message-ID: CACfEFw9MU3-w8Mb-4DbvAji-VX8XKzz0geKLqaFJOBTTu9u3Bw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Nov 23, 2015 10:46 AM, "Chris Barker" <chris.barker@noaa.gov> wrote:
>
> On Sun, Nov 22, 2015 at 2:58 PM, Wolfgang Maier <
wolfgang.maier@biologie.uni-freiburg.de> wrote:
>
>>>
>>> Useful content starts only 2/3 down the first page. The large "pip
>>> install six" snippet probably doesn't deserve being that proeminent
>>> (or being there at all), and is ironically redundant with the "how do
>>> I install this?" link just below.
>>>
>>
>> My favorite is "pip install pip". Seriously, is this installation
one-liner going to be configurable by package authors eventually or will it
just always say pip install no-matter-what?
>
>
> This is a good point -- is there a need for generic install instruction
on every package page?
>
> If so -- it should be small :-)
>
> Also -- maybe not the thread to bring this up in -- but maybe it should
be::
>
>    python -m pip install package_name
>

I find this form preferable, especially for [shell] scripting, because:

* $PATH: ./bin/python[3.5] and ./bin/pip may not be in the same path (e.g.
system, virtualenv, condaenv, --prefix)

  type python
  type pip
  which python
  which pip
  python -m site
  python -m site --user-base
  python -m site --user-site

* declare -rx PYTHONBIN="${VIRTUAL_ENV}/bin/python"

  "${PYTHONBIN}" -m pip install -U pip
  "${PYTHONBIN}" -m site

https://docs.python.org/2/library/site.html

> -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
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>

[Attachment #5 (text/html)]

<p dir="ltr"><br>
On Nov 23, 2015 10:46 AM, &quot;Chris Barker&quot; &lt;<a \
href="mailto:chris.barker@noaa.gov">chris.barker@noaa.gov</a>&gt; wrote:<br> &gt;<br>
&gt; On Sun, Nov 22, 2015 at 2:58 PM, Wolfgang Maier &lt;<a \
href="mailto:wolfgang.maier@biologie.uni-freiburg.de">wolfgang.maier@biologie.uni-freiburg.de</a>&gt; \
wrote:<br> &gt;   <br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Useful content starts only 2/3 down the first page. The large \
&quot;pip<br> &gt;&gt;&gt; install six&quot; snippet probably doesn&#39;t deserve \
being that proeminent<br> &gt;&gt;&gt; (or being there at all), and is ironically \
redundant with the &quot;how do<br> &gt;&gt;&gt; I install this?&quot; link just \
below.<br> &gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; My favorite is &quot;pip install pip&quot;. Seriously, is this installation \
one-liner going to be configurable by package authors eventually or will it just \
always say pip install no-matter-what?<br> &gt;<br>
&gt;<br>
&gt; This is a good point -- is there a need for generic install instruction on every \
package page?<br> &gt;<br>
&gt; If so -- it should be small :-)<br>
&gt;<br>
&gt; Also -- maybe not the thread to bring this up in -- but maybe it should be::<br>
&gt;<br>
&gt;      python -m pip install package_name<br>
&gt;</p>
<p dir="ltr">I find this form preferable, especially for [shell] scripting, \
because:</p> <p dir="ltr">* $PATH: ./bin/python[3.5] and ./bin/pip may not be in the \
same path (e.g. system, virtualenv, condaenv, --prefix)</p> <p dir="ltr">   type \
python<br>  type pip<br>
   which python<br>
   which pip<br>
   python -m site<br>
   python -m site --user-base<br>
   python -m site --user-site</p>
<p dir="ltr">* declare -rx PYTHONBIN=&quot;${VIRTUAL_ENV}/bin/python&quot;</p>
<p dir="ltr">   &quot;${PYTHONBIN}&quot; -m pip install -U pip<br>
   &quot;${PYTHONBIN}&quot; -m site</p>
<p dir="ltr"><a href="https://docs.python.org/2/library/site.html">https://docs.python.org/2/library/site.html</a><br></p>
 <p dir="ltr">&gt; -CHB<br>
&gt;<br>
&gt;<br>
&gt; --  <br>
&gt;<br>
&gt; Christopher Barker, Ph.D.<br>
&gt; Oceanographer<br>
&gt;<br>
&gt; Emergency Response Division<br>
&gt; NOAA/NOS/OR&amp;R                  (206) 526-6959     voice<br>
&gt; 7600 Sand Point Way NE     (206) 526-6329     fax<br>
&gt; Seattle, WA   98115           (206) 526-6317     main reception<br>
&gt;<br>
&gt; <a href="mailto:Chris.Barker@noaa.gov">Chris.Barker@noaa.gov</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Distutils-SIG maillist   -   <a \
href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br> &gt; <a \
href="https://mail.python.org/mailman/listinfo/distutils-sig">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
 &gt;<br>
</p>



_______________________________________________
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