-
Notifications
You must be signed in to change notification settings - Fork 22
chore: use scikit-build 0.12 #70
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=42", "wheel", "scikit-build"] | ||
| requires = [ | ||
| "setuptools>=42", | ||
| "wheel", | ||
| "scikit-build>=0.12", | ||
| ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May also be worth updating https://github.com/scikit-build/ninja-python-distributions/blob/master/docs/make_a_release.rst to reference this commit. It could be useful to create future pre-release.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.cibuildwheel] | ||
|
|
@@ -19,7 +23,6 @@ manylinux-i686-image = "manylinux1" | |
|
|
||
| [tool.cibuildwheel.macos.environment] | ||
| MACOSX_DEPLOYMENT_TARGET = "10.9" | ||
| CMAKE_OSX_ARCHITECTURES = "arm64;x86_64" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is no longer required (but not harmful) |
||
|
|
||
| [tool.cibuildwheel.windows] | ||
| before-all = [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,8 +59,8 @@ def main(): | |
| additional_platforms = [] | ||
| if os_ == "macos": | ||
| # first, get the target macOS deployment target from the wheel | ||
| match = re.match(r"^.*-macosx_(\d+)_(\d+)_x86_64\.whl$", file.name) | ||
| assert match is not None | ||
| match = re.match(r"^.*-macosx_(\d+)_(\d+)_.*\.whl$", file.name) | ||
| assert match is not None, f"Couldn't match on {file.name}" | ||
|
Comment on lines
-62
to
+63
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The wheels used to be misnamed (scikit-build didn't understand universal naming), and now they are correctly tagged, so this had to be modified to pick up the correct name. |
||
| target = tuple(map(int, match.groups())) | ||
|
|
||
| # let's add universal2 platform for this 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.
This is the one surprise, by the way. It works fine with
windows-2019, but finds GCC withwindows-2016. I don't think any of the other things we've tried have this problem, and we test onwindows-2016, but it might be worth further investigation.