The “Jayraj’s understanding” version:
.whlfile, you get a directory with a
dist-infodirectory has a file named
WHEELwhich tells you things. One of these things is if the package is pure Python (purelib) or contains platform-specific (platlib) files.
dist-info/top-level.txtgoes straight into your
site-packages. Depending on your
PYTHONPATH(I’m assuming) this will either be your system’s
site-packagesor your virtualenvs
.data. This contains further sub-directories that can have names such as
scripts. As far as I can tell so far, the files in the
scriptsdirectory go someplace that’s on your shell’s
PATH. No idea where
datagoes. The spec is vague about the actual destinations of the things inside
.data, saying “Move each subtree of distribution-1.0.data/ onto its destination path”. From the context, I gather that the meaning of “its destination path” is generally-known to most people reading the doc.
dist-infocontains another file called
RECORD. When you first unzip the
.whlit contains a listing of all the files in the distributions and their SHA-256 hashes for verification. After you’ve moved all the files where they’re supposed to go, the
RECORDfile is updated with the new paths of each file.