Skip to content

Commit

Permalink
chore(meson-build): improved meson rebuilds with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
samypr100 committed Oct 5, 2024
1 parent 34b43b9 commit a337656
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/uv/src/commands/project/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,9 @@ fn pyproject_build_system(package: &PackageName, build_backend: ProjectBuildBack
"#}
.to_string(),
ProjectBuildBackend::Meson => indoc::indoc! {r#"
[tool.meson-python.args]
setup = ["--clearcache"]
[build-system]
requires = ["meson-python", "pybind11"]
build-backend = "mesonpy"
Expand Down
6 changes: 6 additions & 0 deletions crates/uv/tests/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,9 @@ fn init_app_build_backend_meson() -> Result<()> {
[project.scripts]
foo = "foo:main"
[tool.meson-python.args]
setup = ["--clearcache"]
[build-system]
requires = ["meson-python", "pybind11"]
build-backend = "mesonpy"
Expand Down Expand Up @@ -3117,6 +3120,9 @@ fn init_lib_build_backend_meson() -> Result<()> {
requires-python = ">=3.12"
dependencies = []
[tool.meson-python.args]
setup = ["--clearcache"]
[build-system]
requires = ["meson-python", "pybind11"]
build-backend = "mesonpy"
Expand Down

0 comments on commit a337656

Please sign in to comment.