Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wheel is a reference to the other Python

Tags:

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?

like image 794
wim Avatar asked Jan 14 '14 12:01

wim


People also ask

What is a wheel in Python?

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.

Why is Python wheel called wheel?

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.

What are wheels and eggs in Python?

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.

How do you make a wheel in Python?

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!


1 Answers

.egg is a reference to the snake variety of python, .whl is a reference to Monty Python's "wheel of cheese"

like image 185
Eric Avatar answered Oct 08 '22 02:10

Eric