Skip to content

Cherry picks for v0.46.1 patch release #1694

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

Merged
merged 7 commits into from
Jul 2, 2025

Conversation

matthewdouglas
Copy link
Member

@matthewdouglas matthewdouglas commented Jul 1, 2025

mklabunde and others added 6 commits July 1, 2025 16:22
* doc fix signature for 8-bit optim

* required changes

* precommit

(cherry picked from commit 61db085)
(cherry picked from commit fd2949a)
* Add CUDA 12.9 to build/test workflows

* Downgrade Jimver/cuda-toolkit to v0.2.24

* Update python-package.yml

* Update python-package.yml

* Update python-package.yml

* Update tests.yml

* Update tests.yml

(cherry picked from commit 1abd5e7)
@matthewdouglas matthewdouglas added this to the v0.46.1 milestone Jul 1, 2025
@matthewdouglas matthewdouglas self-assigned this Jul 1, 2025
* Automatically call CMake as part of PEP 517 build

Call CMake and build the CPU extension when invoking the build
via a PEP 517 backend, to ensure that at least some extension is built
when users are building from source.  This improves consistency with
other Python packages, and reduces the risk of accidents.

We are using `scikit-build-core` setuptools plugin to take care of CMake
dependencies and call into CMake.  However, we need to modify
the `build_py` command to ensure that CMake is called prior to
the setuptools command, as otherwise the newly built shared library
won't be picked up by `build_py`.

Since setuptools is still responsible for collecting the Python package,
it also collects all other shared libraries that were built earlier,
for example via manual CMake calls as done in the CI pipeline.
Furthermore, if the user does not have `scikit-build-core` installed
and calls `setup.py` directly, we output a warning but continue working
as before.

The logic can be further extended in the future, for example to detect
the best COMPUTE_BACKEND default.

Fixes #1511

* Include C sources and build files in source distribution

* Fix formatting

(cherry picked from commit ed9c8fc)
Copy link

github-actions bot commented Jul 1, 2025

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@matthewdouglas matthewdouglas marked this pull request as ready for review July 2, 2025 18:49
@matthewdouglas matthewdouglas merged commit 7d4b52a into release/0.46.x Jul 2, 2025
70 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants