Get the latest tech news
Python wheel filenames have no canonical form
Jun 12, 2024 Tags: curiosity, programming, python, security This short(-ish) post is a successor to 2022’s a most vexing parse, but for Python packaging. I discovered it the other day while doing it what I normally do: mucking through the guts of Python packaging.
This distinction between parsing and canonicalizing for comparison rarely matters in practice, but it’s a curiosity that I couldn’t find any other resources on. For example, pip, a pure-Python package that is written to run under Python 2 and 3 with the same source code, could distribute a bdist with the tag py2.py3-none-any. As established above, this doesn’t matter very much, and probably shouldn’t be a particularly high priority in terms of things that need fixing in Python packaging.
Or read this on Hacker News