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


Groups > comp.lang.python > #83744

Re: What does "pip install" do?

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: What does "pip install" do?
Date 2015-01-14 22:08 +1100
References <m91i6i$3ft$1@speranza.aioe.org> <mailman.17646.1421102814.18130.python-list@python.org> <m92iqd$7ko$1@speranza.aioe.org>
Newsgroups comp.lang.python
Message-ID <mailman.17712.1421233733.18130.python-list@python.org> (permalink)

Show all headers | 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