Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Investigation] Reduce the amount of patching insetuptools.build_meta#5008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
abravalheri wants to merge6 commits intomain
base:main
Choose a base branch
Loading
fromdebt/refactoring-build_meta-patches

Conversation

@abravalheri
Copy link
Contributor

@abravalheriabravalheri commentedMay 22, 2025
edited
Loading

Summary of changes

This started as an exercise in#4973 (comment)

The idea is to avoid all the patching involved in makingsetuptools.build_meta compatible withsetup.py.
Currentlyno_install_setup_requires is patching the distribution class that is already patched bysetuptools.monkey. It looks very fragile.

(Granted, this PR replaces patching with magic argv flags + a bunch ofif-statements, but that can be slightly better?)

Closes

Pull Request Checklist


returnSetupRequirementsError

raiseAttributeError(name)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

For some reasonSetupRequirementsError has been listed in__all__, so this__getattr__ and deprecation warning are here just to be on the safe side (and be very conservative regarding breaking changes).

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi, I'm trying to useSetupRequirementsError to add dynamic build requirements becausehttps://setuptools.pypa.io/en/stable/build_meta.html#dynamic-build-dependencies-and-other-build-meta-tweaks does not work insome cases due tosetuptools invokingsetup.py duringget_requires_for_build_wheel.

If this gets removed, what's the recommended alternative?

@abravalheriabravalheri changed the title[Exploration] Reduce the amount o patching insetuptools.build_meta[Investigation] Reduce the amount o patching insetuptools.build_metaMay 22, 2025
@abravalheriabravalheri changed the title[Investigation] Reduce the amount o patching insetuptools.build_meta[Investigation] Reduce the amount of patching insetuptools.build_metaMay 22, 2025
@abravalheriabravalheri marked this pull request as ready for reviewMay 23, 2025 09:02
@abravalheriabravalheri requested a review fromjaracoMay 23, 2025 09:02
@abravalheri
Copy link
ContributorAuthor

@jaraco is this direction something that makes sense to investigate?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jaracojaracoAwaiting requested review from jaraco

1 more reviewer

@messensemessensemessense left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@abravalheri@messense

[8]ページ先頭

©2009-2025 Movatter.jp