No python prefix in packse scenarios (#1066)

In windows, `python3.9` and `python3.11` are not in `PATH`. Instead, we
should pass only the python version to `puffin venv -p` in packse
scenarios (#1039).
This commit is contained in:
konsti 2024-01-24 12:22:48 +01:00 committed by GitHub
parent 63f3434b21
commit 411613a24e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 52 additions and 52 deletions

View file

@ -33,7 +33,7 @@ mod common;
fn {{module_name}}() -> Result<()> {
let temp_dir = assert_fs::TempDir::new()?;
let cache_dir = assert_fs::TempDir::new()?;
let venv = create_venv(&temp_dir, &cache_dir, "python{{environment.python}}");
let venv = create_venv(&temp_dir, &cache_dir, "{{environment.python}}");
// In addition to the standard filters, swap out package names for more realistic messages
let mut filters = INSTA_FILTERS.to_vec();

View file

@ -65,7 +65,7 @@ fn assert_not_installed(venv: &Path, package: &'static str, temp_dir: &Path) {
fn {{module_name}}() -> Result<()> {
let temp_dir = assert_fs::TempDir::new()?;
let cache_dir = assert_fs::TempDir::new()?;
let venv = create_venv(&temp_dir, &cache_dir, "python{{environment.python}}");
let venv = create_venv(&temp_dir, &cache_dir, "{{environment.python}}");
// In addition to the standard filters, swap out package names for more realistic messages
let mut filters = INSTA_FILTERS.to_vec();