Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does “[sdist]” mean in PIP's list of outdated packages?

Tags:

python

pip

pypi

Suddenly, all Python packages reported as out of date by pip with

pip list --outdated 

indicate [sdist], as in

awscli (Current: 1.7.19 Latest: 1.7.20 [sdist])
botocore (Current: 0.100.0 Latest: 0.101.0 [sdist])
jmespath (Current: 0.6.1 Latest: 0.6.2 [sdist])
plotly (Current: 1.6.14 Latest: 1.6.15 [sdist])

what does [sdist] mean?

like image 376
orome Avatar asked Apr 09 '15 13:04

orome


People also ask

What is Sdist and Bdist?

sdist is a "source distribution". bdist is a "binary distribution". For a pure Python project, those things are pretty close. If your project includes any extension modules, though, the sdist includes the source for those extension modules and use of the sdist will require a compiler.

How do I list all packages in pip?

To do so, we can use the pip list -o or pip list --outdated command, which returns a list of packages with the version currently installed and the latest available. On the other hand, to list out all the packages that are up to date, we can use the pip list -u or pip list --uptodate command.

Where does pip get packages from?

By default, pip installs packages located in the Python Package Index (PyPI), but can also install from other indexes.

What is a wheel package?

A built-package format for Python. A wheel is a ZIP-format archive with a specially formatted filename and the . whl extension. It is designed to contain all the files for a PEP 376 compatible install in a way that is very close to the on-disk format.


1 Answers

In python packaging terms, "sdist" stands for "source distribution" and it's counterpart "bdist" stands for "binary distribution".

Along with those distribution types there's also the older "egg" and the newer egg-like distribution called "wheel".

In this case it's telling you that the newer version of your packages will be installed as a source distribution. If a binary distribution would be installed, you'd see [wheel] instead.

This is a new feature, as of pip version 6.1.0.

like image 121
EricR Avatar answered Nov 15 '22 22:11

EricR