mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
fixed python venv config
This commit is contained in:
parent
b16d468db6
commit
425a9ed2a6
1 changed files with 5 additions and 1 deletions
|
|
@ -2362,7 +2362,11 @@ mod tests {
|
|||
let dir = tempfile::TempDir::new().unwrap();
|
||||
let cache = dir.path().join("venv");
|
||||
std::fs::create_dir_all(cache.join("bin")).unwrap();
|
||||
std::fs::write(cache.join("pyvenv.cfg"), "").unwrap();
|
||||
std::fs::write(
|
||||
cache.join("pyvenv.cfg"),
|
||||
"include-system-site-packages = true\n",
|
||||
)
|
||||
.unwrap();
|
||||
std::fs::write(cache.join("bin").join("python"), "").unwrap();
|
||||
|
||||
assert!(!python_cache_ready(&cache));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue