You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sagemathgh-35618: Use `pypa/build` instead of `pip wheel`
<!-- Please provide a concise, informative and self-explanatory title.
-->
<!-- Don't put issue numbers in the title. Put it in the Description
below. -->
<!-- For example, instead of "Fixessagemath#12345", use "Add a new method to
multiply two integers" -->
### 📚 Description
This is the next step of the long term effort to use the standard tools
of modern Python packaging in the build system of the Sage distribution,
enabled by making `python_build` a standard package. We add
`python_build` to our `PYTHON_TOOLCHAIN` and replace the use of `pip
wheel` by using `python -m build`.
<!-- Describe your changes here in detail. -->
<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixessagemath#12345". -->
- Resolvessagemath#34590.
- Also, we remove the unused helper function `sdh_prefix_args`.
<!-- If your change requires a documentation PR, please link it
appropriately. -->
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x
]`. -->
- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#37300
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
URL: sagemath#35618
Reported by: Matthias Köppe
Reviewer(s): Kwankyu Lee
echo>&2"Retrying with \"python3 -m build --wheel --outdir=dist $build_isolation_option$build_options$@\"."
273
+
if python3 -m build --wheel --outdir=dist $build_isolation_option$build_options"$@";then
280
274
echo>&2"Warning: Wheel building needed to use \"$build_isolation_option\" to succeed. This means that a dependencies file in build/pkgs/ needs to be updated. Please report this to [email protected], including the build log of this package."
0 commit comments