Skip to content

Conversation

hkant27008
Copy link
Owner

Summary

This change extends the default initialized projects with scikit and maturin build backends to ensure that the rust or C++ build gets invoked when a source file changes.

Test Plan

cargo run init cppextension-test --build-backend=scikit followed by manual testing of the behaviour of the resulting project under uv run --with jupyter jupyter lab and changes to the source file of the extension.
Analogous for cargo run init maturin-test --build-backend=maturin .

Relevant Issues

The question of why the python extension is not rebuilt on source changes has been discussed in
astral-sh#15701 (comment).

Summary

Test Plan

<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

This change extends the default initialized projects with scikit and
maturin build backends to ensure that the rust or C++ build gets invoked
when a source file changes.

## Test Plan

`cargo run init cppextension-test --build-backend=scikit` followed by
manual testing of the behaviour of the resulting project under `uv run
--with jupyter jupyter lab` and changes to the source file of the
extension.
Analogous for `cargo run init maturin-test --build-backend=maturin `.

## Relevant Issues

The question of why the python extension is not rebuilt on source
changes has been discussed in
#15701 (comment).
@hkant27008 hkant27008 merged commit ed7b3d2 into hkant27008:main Sep 12, 2025
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