Where package code can run in a Poetry workflow
Tested with Poetry 2.5.1, October 15, 2026. Badge shows the effect of installer.only-binary = ":all:".
- 1Resolve
poetry addpoetry lockpoetry updateEarliestAn sdist without static metadata has its build backend run to report its dependencies. In our test, setup.py ran twice before anything was installed.
only-binary: no effect - 2Install
poetry installpoetry syncWheels are unpacked without running package code. If no locked wheel fits the machine, the locked sdist is built, which runs its backend again.
only-binary: blocks the build - 3Tooling
poetry <any command>Plugins listed in
only-binary: no effectrequires-pluginsare installed into.poetry/pluginsand load inside Poetry on every later command, next to its stored credentials. - 4Runtime
poetry runpythonImporting a package runs its module code. A
only-binary: no effect.pthfile in site-packages runs at every interpreter start.
