Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83744

Re: What does "pip install" do?

Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'package,': 0.03; "'python": 0.09; 'instance.': 0.09; 'otherwise)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'setup.py': 0.09; 'steps:': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.11; '"python': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'recognise': 0.16; 'subject:install': 0.16; 'url:html)': 0.16; 'url:pip': 0.16; 'why,': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; '(the': 0.22; 'code,': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'package.': 0.24; 'question': 0.24; 'equivalent': 0.26; 'skip:" 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'installed': 0.27; 'point': 0.28; 'chris': 0.29; 'especially': 0.30; 'extract': 0.31; 'though.': 0.31; 'writes:': 0.31; 'run': 0.32; 'quite': 0.32; 'packaging': 0.33; 'common': 0.35; 'something': 0.35; 'beyond': 0.35; 'more,': 0.35; 'but': 0.35; 'version': 0.36; 'doing': 0.36; "didn't": 0.36; 'material': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'virtual': 0.37; 'wrong': 0.37; 'ben': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'does': 0.39; 'moving': 0.39; 'subject:" ': 0.39; 'use.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'is.': 0.60; 'most': 0.60; 'mentioned': 0.61; 'skip:* 10': 0.61; 'simply': 0.61; "you're": 0.61; 'information': 0.63; 'more': 0.64; 'skip:\xe2 10': 0.65; 'details': 0.65; 'details,': 0.68; 'bothered': 0.68; '8bit%:43': 0.74; 'power': 0.76; 'answered,': 0.84; 'compiling': 0.84; 'end-user': 0.84; 'env': 0.84; 'latest,': 0.84; 'received:125': 0.84; 'url:latest': 0.91; '\xe2\x80\x9cthe': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: What does "pip install" do?
Date Wed, 14 Jan 2015 22:08:56 +1100
References <m91i6i$3ft$1@speranza.aioe.org> <mailman.17646.1421102814.18130.python-list@python.org> <m92iqd$7ko$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:2FO2XGPsxD4XKusCKxdjD7XWbdc=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17712.1421233733.18130.python-list@python.org> (permalink)
Lines 52
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1421233733 news.xs4all.nl 2908 [2001:888:2000:d::a6]:54480
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:83744

Show key headers only | View raw


Fabien <fabien.maussion@gmail.com> writes:

> On 12.01.2015 23:46, Chris Angelico wrote:
> > As far as I know, it's equivalent to three steps:
> >
> > 1) Download the appropriate version of a package (the latest, if you
> > didn't say otherwise)
> > 2) Extract that package
> > 3) Run 'python setup.py'.
> >
> > What setup.py does is up to the package, but for a pure-Python
> > package it should simply create something in site-packages. It might
> > do a lot more, though - compiling C or Fortran code, for instance.
>
> Thanks Chris. I should then rephrase my question to "what does python
> setup.pt do?" ;-).

You're re-phrasing that as a question which has already been answered,
though. What ‘setup.py’ actually does is up to each package. Some are
quite small and simple; others are large complex applications.

> My point was also that I think that this information (mostly: what
> will change on my system or my virtual env when I install a python
> package?) could/should be provided in the mentioned resources:
>
> "Python Packaging Authority" website
> (https://pip.pypa.io/en/latest/user_guide.html),
> "python-packaging-user-guide"
> (http://python-packaging-user-guide.readthedocs.org/en/latest/installing.html)

Why, though? The point of an end-user program is that an end-user should
not need to be bothered by what it does internally, only what the
observable behaviour is. In the case of ‘pip install’, the observable
behaviour is that a package is installed and ready for use.

Your questions drive ever toward “What is the *implementation* of this?”
which is not material suitable for a user guide — especially when the
implementation details are in much more appropriate documents
<URL:https://python-packaging-user-guide.readthedocs.org/en/latest/distributing.html>
<URL:https://python-packaging-user-guide.readthedocs.org/en/latest/additional.html>.

If you want to learn about the internals and the implementation details,
you are expressly moving beyond the scope of the user guide. There's
nothing wrong with doing that, but you need to recognise the shift and
look for the appropriate documentation.

-- 
 \      “The most common way people give up their power is by thinking |
  `\                               they don't have any.” —Alice Walker |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

What does "pip install" do? Fabien <fabien.maussion@gmail.com> - 2015-01-12 23:35 +0100
  Re: What does "pip install" do? Chris Angelico <rosuav@gmail.com> - 2015-01-13 09:46 +1100
    Re: What does "pip install" do? Fabien <fabien.maussion@gmail.com> - 2015-01-13 08:51 +0100
      Re: What does "pip install" do? Chris Angelico <rosuav@gmail.com> - 2015-01-13 18:59 +1100
      Re: What does "pip install" do? Ben Finney <ben+python@benfinney.id.au> - 2015-01-14 22:08 +1100

csiph-web