Skip to content

Commit a80e698

Browse files
committed
uv run for maturin?
1 parent 2f57e08 commit a80e698

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ install-rust-coverage:
3939
build-dev:
4040
@rm -f python/pydantic_core/*.so
4141
ifneq ($(USE_MATURIN),)
42-
maturin develop
42+
uv run maturin develop
4343
else
4444
uv pip install -v -e . --config-settings=build-args='--profile dev'
4545
endif
@@ -48,7 +48,7 @@ endif
4848
build-prod:
4949
@rm -f python/pydantic_core/*.so
5050
ifneq ($(USE_MATURIN),)
51-
maturin develop --release
51+
uv run maturin develop --release
5252
else
5353
uv pip install -v -e .
5454
endif
@@ -57,7 +57,7 @@ endif
5757
build-profiling:
5858
@rm -f python/pydantic_core/*.so
5959
ifneq ($(USE_MATURIN),)
60-
maturin develop --profile profiling
60+
uv run maturin develop --profile profiling
6161
else
6262
uv pip install -v -e . --config-settings=build-args='--profile profiling'
6363
endif
@@ -66,7 +66,7 @@ endif
6666
build-coverage:
6767
@rm -f python/pydantic_core/*.so
6868
ifneq ($(USE_MATURIN),)
69-
RUSTFLAGS='-C instrument-coverage' maturin develop --release
69+
RUSTFLAGS='-C instrument-coverage' uv run maturin develop --release
7070
else
7171
RUSTFLAGS='-C instrument-coverage' uv pip install -v -e .
7272
endif
@@ -76,15 +76,15 @@ build-pgo:
7676
@rm -f python/pydantic_core/*.so
7777
$(eval PROFDATA := $(shell mktemp -d))
7878
ifneq ($(USE_MATURIN),)
79-
RUSTFLAGS='-Cprofile-generate=$(PROFDATA)' maturin develop --release
79+
RUSTFLAGS='-Cprofile-generate=$(PROFDATA)' uv run maturin develop --release
8080
else
8181
RUSTFLAGS='-Cprofile-generate=$(PROFDATA)' uv pip install -v -e .
8282
endif
8383
pytest tests/benchmarks
8484
$(eval LLVM_PROFDATA := $(shell rustup run stable bash -c 'echo $$RUSTUP_HOME/toolchains/$$RUSTUP_TOOLCHAIN/lib/rustlib/$$(rustc -Vv | grep host | cut -d " " -f 2)/bin/llvm-profdata'))
8585
$(LLVM_PROFDATA) merge -o $(PROFDATA)/merged.profdata $(PROFDATA)
8686
ifneq ($(USE_MATURIN),)
87-
RUSTFLAGS='-Cprofile-use=$(PROFDATA)/merged.profdata' maturin develop --release
87+
RUSTFLAGS='-Cprofile-use=$(PROFDATA)/merged.profdata' uv run maturin develop --release
8888
else
8989
RUSTFLAGS='-Cprofile-use=$(PROFDATA)/merged.profdata' uv pip install -v -e .
9090
endif
@@ -94,7 +94,7 @@ endif
9494
.PHONY: build-wasm
9595
build-wasm:
9696
@echo 'This requires python 3.12, maturin and emsdk to be installed'
97-
maturin build --release --target wasm32-unknown-emscripten --out dist -i 3.12
97+
uv run maturin build --release --target wasm32-unknown-emscripten --out dist -i 3.12
9898
ls -lh dist
9999

100100
.PHONY: format

0 commit comments

Comments
 (0)