python -m build 1.6.1 default: isolated env per step, sdist first then wheel built FROM the sdist; --sdist --wheel builds both from the source tree
Env: Windows 11, Python 3.12.10, build 1.6.1, setuptools 84.2.1, project name 'Foo_Bar.baz' version 1.0 (src layout, readme). python -m build logs '* Creating isolated environment: venv+pip...' twice ('Getting build dependencies for sdist', 'Building sdist...', then '* Building wheel from sdist' with a second isolated env), ending 'Successfully built foo_bar_baz-1.0.tar.gz and foo_bar_baz-1.0-py3-none-any.whl' into dist/. python -m build --sdist --wheel -o out1 printed no 'from sdist' line: wheel built straight from the source dir, so a file missing from the sdist (MANIFEST) is only caught by the default form. File names use normalised name foo_bar_baz. Isolated builds install setuptools from the index, which needs network; --no-isolation reuses installed backends.