Make windows compile (#1035)

Minimal changes to make `cargo check`/`cargo run` work to unblock the
remaining PR stacking
This commit is contained in:
konsti 2024-01-22 14:11:20 +01:00 committed by GitHub
parent b9bee013ce
commit 765e3175e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -127,8 +127,8 @@ impl Interpreter {
#[cfg(windows)] #[cfg(windows)]
{ {
if let Some(python_version) = python_version { if let Some(_python_version) = python_version {
compile_error!("Implement me") unimplemented!("Implement me")
} }
let executable = which::which("python.exe") let executable = which::which("python.exe")

View File

@ -51,10 +51,7 @@ impl Virtualenv {
} }
#[cfg(windows)] #[cfg(windows)]
{ {
self.0 self.root.join("Scripts").join("python.exe")
.join("Scripts")
.join("python.exe")
.into_std_path_buf()
} }
#[cfg(not(any(unix, windows)))] #[cfg(not(any(unix, windows)))]
{ {