Python Packaging Demystified
summary
Session shows how packaging actually works: pyproject.toml and PEP 517 for isolated builds, concrete use of flit, setuptools and pip as front- and back-ends, and virtualenv for isolated installs. It builds sdist then wheel, covers C-extension compilation and a measured speedup (about 105ms → 70ms), demonstrates uploading with twine, and creates runnable bundles with shiv pex pyinstaller demos. It inspects import machinery and sys.path, explains build backend vs front-end, and includes live terminal exercises and hands-on packaging tasks.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 3:51Packaging concepts
- 15:48Libraries vs applications
- 19:52Virtual environments
- 34:09The import system
- 48:52Package installation
- 57:33Source vs wheel
- 1:10:34Building packages
- 1:23:36Hands-on packaging
- 1:36:14C extensions
- 1:46:47Uploading and distributing
- 1:59:23Package discovery
- 2:03:21Testing libraries
- 2:10:08Building applications
- 2:18:48Zip applications
- 2:26:46PyInstaller
- 2:30:53Advanced packaging
related talks
28mModern Python packaging without pain
36mPython Packaging from Init to Deploy
38mPython Packaging - one tool to pack them all
25mInside the Cheeseshop: How Python Packaging Works
32mInside the Cheeseshop: How Python Packaging Works
24mInside the Cheeseshop:How Python Packaging Works
36mLess known packaging features and tricks
30mCreate a Python Package From Zero to Hero
