Skip to content

Build dpctl with scikit-build-core - #2345

Open
ndgrigorian wants to merge 10 commits into
masterfrom
feature/build-with-scikit-build-core
Open

ndgrigorian wants to merge 10 commits into
masterfrom
feature/build-with-scikit-build-core

Conversation

@ndgrigorian

@ndgrigorian ndgrigorian commented Jul 28, 2026 •

Copy link
Copy Markdown
Collaborator

This PR proposes building dpctl instead with scikit-build-core, upgrading from scikit-build to the more modern build system, and computing the version with setuptools-scm instead of versioneer

It includes the commits from gh-2388 (by @henryiii), rebased onto master, with the conda recipe, CHANGELOG and workflows adapted to the changes on master since; the examples are built with scikit-build-core as well, with a minimal pyproject.toml each, and use_dpctl_sycl_kernel installs its SPIR-V resources inside the package

scikit-build 1.0 broke the setup.py build_ext builds in CI; gh-2438 pins it below 1.0 until this PR is merged

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

@ndgrigorian
ndgrigorian force-pushed the feature/build-with-scikit-build-core branch from fd7a5c2 to 2f74475 Compare November 5, 2026 17:43
Replace the setup.py build (which uses skbuild.setuptools_wrap internals)
with scikit-build-core, and versioneer with setuptools-scm.

Closes #2341.

Assisted-by: ClaudeCode:claude-opus-5-5
Assisted-by: ClaudeCode:claude-opus-5-5
Find installed data next to a compiled module, since editable installs
keep Python files in the source tree. Clear the VS generator platform
and toolset in bld.bat, which Ninja rejects.

Assisted-by: ClaudeCode:claude-opus-5-5
@ndgrigorian
ndgrigorian force-pushed the feature/build-with-scikit-build-core branch from 2f74475 to 1c2f892 Compare December 2, 2026 22:59
The loop over the undefined _sources set no options.
They install with the extension, so example.py and the tests find them in
editable and regular installs alike.
Install scikit-build-core in the Windows open-source compiler workflow.
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

@ndgrigorian
ndgrigorian force-pushed the feature/build-with-scikit-build-core branch from 1c2f892 to 0357abf Compare December 2, 2026 23:03
@coveralls

coveralls commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 75.162% (-0.01%) from 75.173% — feature/build-with-scikit-build-core into master

@henryiii

henryiii commented Dec 2, 2026

Copy link
Copy Markdown

Sorry about the breakage! But I did give several months warning. :)

@ndgrigorian

Copy link
Copy Markdown
Collaborator Author

Sorry about the breakage! But I did give several months warning. :)

It's no problem, your commits were quite helpful regardless of anything (especially with versioning). The PR to pin in CI for the time being is also open. :)

@ndgrigorian
ndgrigorian marked this pull request as ready for review December 2, 2026 23:14
With the Visual Studio generator, the default on Windows, CMake uses MSVC
regardless of CC and CXX.
@ndgrigorian
ndgrigorian force-pushed the feature/build-with-scikit-build-core branch from 2d16bc4 to e520a55 Compare December 2, 2026 23:33
With -w, cython writes its depfile relative to the source directory, which
fails when the temporary build directory is on another drive.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants