File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,16 @@ use duct::cmd;
3
3
fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
4
4
// Create the project-specific Python virtual environment.
5
5
println ! ( "Creating the Python virtual environment..." ) ;
6
- cmd ! ( "uv" , "sync" , "--all-packages " ) . run ( ) ?;
6
+ cmd ! ( "uv" , "sync" , "--no-install-workspace " ) . run ( ) ?;
7
7
8
- println ! ( "Testing the Rust crate..." ) ;
9
8
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..." ) ;
10
16
cmd ! ( "cargo" , "test" )
11
17
// Tell `pyo3` where to find the project-specific
12
18
// virtual environment.
You can’t perform that action at this time.
0 commit comments