[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, "Chris Barker" <<a \
href="mailto:chris.barker@noaa.gov">chris.barker@noaa.gov</a>> wrote:<br> ><br>
> On Sun, Nov 22, 2015 at 2:58 PM, Wolfgang Maier <<a \
href="mailto:wolfgang.maier@biologie.uni-freiburg.de">wolfgang.maier@biologie.uni-freiburg.de</a>> \
wrote:<br> > <br>
>>><br>
>>> Useful content starts only 2/3 down the first page. The large \
"pip<br> >>> install six" snippet probably doesn't deserve \
being that proeminent<br> >>> (or being there at all), and is ironically \
redundant with the "how do<br> >>> I install this?" link just \
below.<br> >>><br>
>><br>
>> 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?<br> ><br>
><br>
> This is a good point -- is there a need for generic install instruction on every \
package page?<br> ><br>
> If so -- it should be small :-)<br>
><br>
> Also -- maybe not the thread to bring this up in -- but maybe it should be::<br>
><br>
> python -m pip install package_name<br>
></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="${VIRTUAL_ENV}/bin/python"</p>
<p dir="ltr"> "${PYTHONBIN}" -m pip install -U pip<br>
"${PYTHONBIN}" -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">> -CHB<br>
><br>
><br>
> -- <br>
><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">Chris.Barker@noaa.gov</a><br>
><br>
> _______________________________________________<br>
> Distutils-SIG maillist - <a \
href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br> > <a \
href="https://mail.python.org/mailman/listinfo/distutils-sig">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
><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