PEP 427 describes the move to .whl files from .egg for Python packaging.
In the comparisons section of the PEP, there is point 6:
Wheel is a reference to the other Python.
I don't understand this point, what are they trying to say?
What Is a Python Wheel? A Python . whl file is essentially a ZIP ( . zip ) archive with a specially crafted filename that tells installers what Python versions and platforms the wheel will support. A wheel is a type of built distribution.
PyPI used to be called a cheeseshop, in reference to a Monty Python sketch (where the cheeseshop has no cheese). The joke was that PyPI was initially like that - it had nothing in it back then. Based off that, wheel is a reference to wheels of cheese.
Wheel and Egg are both packaging formats that aim to support the use case of needing an install artifact that doesn't require building or compilation, which can be costly in testing and production workflows. The Egg format was introduced by setuptools in 2004, whereas the Wheel format was introduced by PEP 427 in 2012.
Go to your command prompt/ conda prompt from where you can run python and pip commands, if not sure then check this link. Change directory in the command prompt and navigate to your project root directory where setup.py is placed . Execute python setup.py bdist_wheel . Voila!
.egg
is a reference to the snake variety of python, .whl
is a reference to Monty Python's "wheel of cheese"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With