Skip to content

Replace per req permit_editable_wheels by a preparer and builder flag#14206

Merged
ichard26 merged 1 commit into
pypa:mainfrom
sbidoul:refactor-permit_editable_wheels-sbi
Jul 27, 2026
Merged

Replace per req permit_editable_wheels by a preparer and builder flag#14206
ichard26 merged 1 commit into
pypa:mainfrom
sbidoul:refactor-permit_editable_wheels-sbi

Conversation

@sbidoul

@sbidoul sbidoul commented Jul 26, 2026

Copy link
Copy Markdown
Member

#14195 reminded me that, back then, I was not happy with the way I implemented this permit_editable_wheels per requirement flag.

In effect, it is a global mode that allows disabling editable metadata preparation and wheel building and use regular wheels for pip wheel and pip download. So making it per requirement flag was not a good ift.

With this PR I make it a flag on the preparer and propagate it to metadata preparation functions. And an argument to the build function.

This feels cleaner to me and should be more robust.

The two important tests about this still pass (test_wheel_editable_pep660_basic and test_download_editable_pep660_basic).

@sbidoul
sbidoul requested a review from ichard26 July 26, 2026 09:20
@sbidoul sbidoul added skip news Does not need a NEWS file entry (eg: trivial changes) type: maintenance Related to Development and Maintenance Processes skip PR template check Silence the PR template check in CI labels Jul 26, 2026

@ichard26 ichard26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was going to refactor this as well, but you beat me to the punch. Many thanks! :)

@ichard26
ichard26 merged commit 6294f20 into pypa:main Jul 27, 2026
44 of 45 checks passed
@sbidoul
sbidoul deleted the refactor-permit_editable_wheels-sbi branch July 27, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news Does not need a NEWS file entry (eg: trivial changes) skip PR template check Silence the PR template check in CI type: maintenance Related to Development and Maintenance Processes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants