Skip to content

Commit aa0af1f

Browse files
committed
install with conda, not pip
1 parent 0a26ce2 commit aa0af1f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

tests/test_packsmanager.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import re
33
import subprocess
4-
import venv
54
from pathlib import Path
65

76
import pytest
@@ -373,11 +372,24 @@ def test_print_info(packs_to_install, expected, example_cases, capsys):
373372
case5dir = example_cases / "case5"
374373
env_dir = case5dir / "fake_env"
375374
req_dir = case5dir / "requirements" / "packs"
376-
venv.EnvBuilder(with_pip=True).create(env_dir)
375+
subprocess.run(
376+
["conda", "create", "-y", "-p", str(env_dir)],
377+
check=True,
378+
capture_output=True,
379+
text=True,
380+
)
377381
for pack in packs_to_install:
378382
req_file = req_dir / f"{pack.lower()}.txt"
379383
subprocess.run(
380-
[str(env_dir / "bin" / "pip"), "install", "-r", str(req_file)],
384+
[
385+
"conda",
386+
"install",
387+
"-y",
388+
"--file",
389+
str(req_file),
390+
"-p",
391+
str(env_dir),
392+
],
381393
check=True,
382394
capture_output=True,
383395
text=True,

0 commit comments

Comments
 (0)