Table of Contents

About

Wheel is a compiled archive format with the .whl extension.

A wheel is a built package that can be installed without needing to go through the “build” process. Installing wheels is substantially faster for the end user than installing from a source distribution.

Format

The binary distribution format (wheel) is defined in PEP 427.

Management

Install wheel

Install the wheel utility.

pip install wheel
# or
python -m pip install --user --upgrade wheel
Downloading/unpacking wheel
Installing collected packages: wheel
Successfully installed wheel
Cleaning up...

# python 2
sudo yum upgrade python-setuptools
sudo yum install python-pip python-wheel
# python 3
sudo yum install python3 python3-wheel

Location

in the scripts location

dir  C:\Users\gerard\AppData\Roaming\Python\Python37\Scripts
wheel.exe

Install a wheel package

pip install SomePackage-1.0-py2.py3-none-any.whl

where:

Example

Python - NumPy

The wheel archive comes from here

pip install numpy-1.9.2+mkl-cp27-none-win_amd64.whl
Unpacking c:\users\nicolasgerard\downloads\numpy-1.9.2+mkl-cp27-none-win_amd64.whl
Installing collected packages: numpy
Successfully installed numpy
Cleaning up...

Create a wheel package

See regular package building

cd ./project
python setup.py bdist_wheel

Documentation / Reference