Skip to content

Commit 6e2eb73

Browse files
Don't try to compile the Rust project at the very start. First create the venv
1 parent b02eec9 commit 6e2eb73

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

verifier/src/main.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ use duct::cmd;
33
fn main() -> Result<(), Box<dyn std::error::Error>> {
44
// Create the project-specific Python virtual environment.
55
println!("Creating the Python virtual environment...");
6-
cmd!("uv", "sync", "--all-packages").run()?;
6+
cmd!("uv", "sync", "--no-install-workspace").run()?;
77

8-
println!("Testing the Rust crate...");
98
let venv = std::env::current_dir()?.join(".venv");
9+
cmd!("uv", "sync", "--all-packages")
10+
// Tell `pyo3` where to find the project-specific
11+
// virtual environment.
12+
.env("VIRTUAL_ENV", &venv)
13+
.run()?;
14+
15+
println!("Testing the Rust crate...");
1016
cmd!("cargo", "test")
1117
// Tell `pyo3` where to find the project-specific
1218
// virtual environment.

0 commit comments

Comments
 (0)