Skip to content

Make gridtools-cpp installable from a git ref via scikit-build-core#1831

Open
havogt wants to merge 1 commit into
GridTools:masterfrom
havogt:scikit-build-core-packaging
Open

Make gridtools-cpp installable from a git ref via scikit-build-core#1831
havogt wants to merge 1 commit into
GridTools:masterfrom
havogt:scikit-build-core-packaging

Conversation

@havogt

@havogt havogt commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Switch the gridtools-cpp Python distribution to the scikit-build-core PEP 517 backend driven by a new root-level pyproject.toml. The backend runs the root CMakeLists.txt on every build, installing the headers and CMake config into the package data and reading the version from version.txt -- so the package is fully self-contained and installs cleanly straight from a git ref with no subdirectory and no out-of-band nox prepare step:

pip install "git+https://github.com/GridTools/gridtools.git@<ref>"

The wheel stays header-only and platform independent (py3-none-any).

  • add root pyproject.toml (scikit-build-core); allowlist it in .gitignore
  • move the gridtools_cpp package to src/gridtools_cpp/
  • drop the now-obsolete .python_package/pyproject.toml and setup.cfg.in
  • slim noxfile.py to build the root project (same session names + dist path, so the CI workflow is unchanged) and refresh DEVELOPMENT.md

Switch the gridtools-cpp Python distribution to the scikit-build-core PEP 517
backend driven by a new root-level pyproject.toml. The backend runs the root
CMakeLists.txt on every build, installing the headers and CMake config into the
package data and reading the version from version.txt -- so the package is fully
self-contained and installs cleanly straight from a git ref with no subdirectory
and no out-of-band nox prepare step:

    pip install "git+https://github.com/GridTools/gridtools.git@<ref>"

The wheel stays header-only and platform independent (py3-none-any).

- add root pyproject.toml (scikit-build-core); allowlist it in .gitignore
- move the gridtools_cpp package to src/gridtools_cpp/
- drop the now-obsolete .python_package/pyproject.toml and setup.cfg.in
- slim noxfile.py to build the root project (same session names + dist path,
  so the CI workflow is unchanged) and refresh DEVELOPMENT.md
@gridtoolsjenkins

Copy link
Copy Markdown
Collaborator

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

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.

2 participants