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


Groups > comp.lang.python > #111695 > unrolled thread

Python packages listed in PyPI

Started byRayne <hjazz6@ymail.com>
First post2016-07-21 05:44 +0000
Last post2016-07-21 10:04 +0100
Articles 7 — 4 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Python packages listed in PyPI Rayne <hjazz6@ymail.com> - 2016-07-21 05:44 +0000
    Re: Python packages listed in PyPI Pete Forman <petef4+usenet@gmail.com> - 2016-07-21 07:19 +0100
      Re: Python packages listed in PyPI Rayne <hjazz6@ymail.com> - 2016-07-21 06:28 +0000
        Re: Python packages listed in PyPI Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-07-21 16:36 +1000
      Re: Python packages listed in PyPI Ben Finney <ben+python@benfinney.id.au> - 2016-07-21 16:38 +1000
      Re: Python packages listed in PyPI Rayne <hjazz6@ymail.com> - 2016-07-21 06:59 +0000
      Re: Python packages listed in PyPI Pete Forman <petef4+usenet@gmail.com> - 2016-07-21 10:04 +0100

#111695 — Python packages listed in PyPI

FromRayne <hjazz6@ymail.com>
Date2016-07-21 05:44 +0000
SubjectPython packages listed in PyPI
Message-ID<mailman.15.1469080781.22221.python-list@python.org>
Hi,
May I know if the Python packages listed on the PyPI page (https://pypi.python.org/pypi) are OS-independent? That is, do I download and install the same package on both Windows and Linux systems?
Thank you.
Regards,Rayne

[toc] | [next] | [standalone]


#111696

FromPete Forman <petef4+usenet@gmail.com>
Date2016-07-21 07:19 +0100
Message-ID<m1h9bjecnf.fsf@iKarel.lan>
In reply to#111695
Rayne <hjazz6@ymail.com> writes:

> May I know if the Python packages listed on the PyPI page
> (https://pypi.python.org/pypi) are OS-independent? That is, do I
> download and install the same package on both Windows and Linux

The simple answer is yes. pip install will find the appropriate
implementation for your OS and version of Python.

If the package is pure Python then it will be the same across OS. If
there is some binary content then PyPI will deliver the correct wheel
(precompiled) or C/C++ source. The latter generally builds OOTB on
Linux but needs extra work on Windows as that does not bundle a
compiler.

-- 
Pete Forman

[toc] | [prev] | [next] | [standalone]


#111697

FromRayne <hjazz6@ymail.com>
Date2016-07-21 06:28 +0000
Message-ID<mailman.16.1469082520.22221.python-list@python.org>
In reply to#111696
Thanks! One more question: Does "pip install" require Internet to work? Or are all implementations already contained in the packages and so do not require additional downloads?

      From: Pete Forman <petef4+usenet@gmail.com>
 To: python-list@python.org 
 Sent: Thursday, July 21, 2016 2:19 PM
 Subject: Re: Python packages listed in PyPI
   
Rayne <hjazz6@ymail.com> writes:

> May I know if the Python packages listed on the PyPI page
> (https://pypi.python.org/pypi) are OS-independent? That is, do I
> download and install the same package on both Windows and Linux

The simple answer is yes. pip install will find the appropriate
implementation for your OS and version of Python.

If the package is pure Python then it will be the same across OS. If
there is some binary content then PyPI will deliver the correct wheel
(precompiled) or C/C++ source. The latter generally builds OOTB on
Linux but needs extra work on Windows as that does not bundle a
compiler.

-- 
Pete Forman
-- 
https://mail.python.org/mailman/listinfo/python-list


   

[toc] | [prev] | [next] | [standalone]


#111700

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2016-07-21 16:36 +1000
Message-ID<57906d6d$0$1501$c3e8da3$5496439d@news.astraweb.com>
In reply to#111697
On Thursday 21 July 2016 16:28, Rayne wrote:

> Thanks! One more question: Does "pip install" require Internet to work?

Yes, you must have internet access.



-- 
Steve

[toc] | [prev] | [next] | [standalone]


#111701

FromBen Finney <ben+python@benfinney.id.au>
Date2016-07-21 16:38 +1000
Message-ID<mailman.18.1469083206.22221.python-list@python.org>
In reply to#111696
(Please don't top-post; instead, interleave your responses and trim
material you're not responding to.)

Rayne via Python-list <python-list@python.org> writes:

> Thanks! One more question: Does "pip install" require Internet to
> work?

Yes, ‘pip’ resolves the dependencies, download the files, and installs
them.

> Or are all implementations already contained in the packages and so do
> not require additional downloads?

I don't understand what difference you intend between “implementations”
and “packages”.

-- 
 \        “Pinky, are you pondering what I'm pondering?” “Wuh, I think |
  `\       so, Brain, but burlap chafes me so.” —_Pinky and The Brain_ |
_o__)                                                                  |
Ben Finney

[toc] | [prev] | [next] | [standalone]


#111703

FromRayne <hjazz6@ymail.com>
Date2016-07-21 06:59 +0000
Message-ID<mailman.20.1469084511.22221.python-list@python.org>
In reply to#111696

"I don't understand what difference you intend between “implementations”
and “packages”."

I meant whether the package is self-contained, that is, all the different implementations for different OS and versions of Python are already contained in the package itself. But you've already answered my question that additional downloads of the correct version for specific OS and Python version is required.  

[toc] | [prev] | [next] | [standalone]


#111717

FromPete Forman <petef4+usenet@gmail.com>
Date2016-07-21 10:04 +0100
Message-ID<mailman.27.1469115393.22221.python-list@python.org>
In reply to#111696
On 21 July 2016 at 07:28, Rayne <hjazz6@ymail.com> wrote:

> Thanks! One more question: Does "pip install" require Internet to work? Or
> are all implementations already contained in the packages and so do not
> require additional downloads?
>

pip install is downloading from https://pypi.python.org so yes you do
need internet access. Having said that there are a couple of ways to
feed pip. You can run a local pypi server to host previously downloaded
packages or tell pip to install from a file. "pip help install"

Automatic handling of additional downloads is automatic in pip. If the
package you are installing requires some other packages then it will
install those too.

-- 
Pete Forman

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web