-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom build backend to support build args #1692
base: master
Are you sure you want to change the base?
Conversation
This implements a custom build backend, inspired by [the solution used by Pillow](python-pillow/Pillow#7171). The setuptools version requirement of 40.8.0 was also adopted from Pillow. It is the version that introduced the `build_meta:__legacy__` backend.
Ref #1679. |
@@ -1,6 +1,7 @@ | |||
[build-system] | |||
requires = [ | |||
"setuptools", | |||
"setuptools >= 40.8.0", | |||
"wheel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding packaging
here or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left that to #1680 if that's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense.
I and others are still facing issues that this PR, coupled with #1680, would resolve. Is there anything I can do (testing, fix any remaining hangups, etc) to get this merged into upstream? |
@crcrpar - thoughts on merging this PR? |
This implements a custom build backend, inspired by the solution used by Pillow.
--build-option
s aren't actually passed to thebuild_wheel
command for reasons unknown to me. So this patchessetuptools.build_meta
to take the flags manually.The setuptools version requirement of 40.8.0 was also adopted from Pillow. It is the version that introduced the
build_meta:__legacy__
backend.This actually fixes what #1690 meant to do and seems fully backward-compatible.