[Distutils] New Design Landed in Warehouse

Wes Turner wes.turner at gmail.com
Mon Nov 23 13:33:38 EST 2015


On Nov 23, 2015 10:46 AM, "Chris Barker" <chris.barker at noaa.gov> wrote:
>
> On Sun, Nov 22, 2015 at 2:58 PM, Wolfgang Maier <
wolfgang.maier at 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 at noaa.gov
>
> _______________________________________________
> 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/20151123/878c2281/attachment.html>


More information about the Distutils-SIG mailing list