What runs during one pip install demo_pkg-1.0.0.tar.gz (pip 26.2.2, setuptools 84.2.1)
- 1create isolated build envfetches latest backendpip installs
build-system.requires(setuptools>=61) from PyPI and resolves it to 84.2.1, the newest release, with no hash check. - 2get_requires_for_build_wheelruns setup.pysetuptools executes
setup.py egg_infoto discover extra build requirements. - 3prepare_metadata_for_build_wheelruns setup.pysetuptools executes
setup.py dist_infoso pip can read dependencies.pip downloadand--dry-runstop here, after code has already run. - 4build_wheelruns setup.py + cmdclasssetuptools executes
setup.py bdist_wheel, which runsbuild_py,installandegg_info. Overridden commands fire here, includinginstall. - 5install wheelno package codepip unpacks the wheel into site-packages. Files it drops, such as
.pthhooks, run at the next interpreter start.
