Skip to content

Conversation

EmilienM
Copy link
Contributor

Previously, _build_sdist() would catch and log all exceptions, causing the build
to continue even if building the source distribution failed. This could result in
undefined or misleading behavior. Now, exceptions are allowed to propagate,
ensuring that build failures are reported and handled properly.

Fixes #637

Signed-off-by: Emilien Macchi [email protected]

@EmilienM EmilienM requested a review from a team as a code owner June 27, 2025 00:29
Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! However, there is a merge conflict and so rebase is needed.

…st build errors

Previously, _build_sdist() would catch and log all exceptions, causing the build
to continue even if building the source distribution failed. This could result in
undefined or misleading behavior. Now, exceptions are allowed to propagate,
ensuring that build failures are reported and handled properly.

Fixes python-wheel-build#637

Signed-off-by: Emilien Macchi <[email protected]>
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to test this change downstream. I'm worried that we may have some packages for which building an sdist does not work but building the wheel does. If we have that, then we're going to need to continue to protect the bootstrapping process from failures here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bootstrapper._build_sdist() ignores errors
3 participants