Skip to content

Commit

Permalink
More importlib.resource.path fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Will Killian <[email protected]>
  • Loading branch information
willkill07 committed Mar 6, 2025
1 parent 8424452 commit c884848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci/conda/recipes/morpheus-libs/morpheus_dfp_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fi
python3 <<EOF
import importlib.resources
import subprocess
requirements_file = importlib.resources.path("morpheus_dfp", "requirements_morpheus_dfp_arch-$(arch).txt")
subprocess.call(f"pip install -r {requirements_file}".split())
with importlib.resources.path("morpheus_dfp", "requirements_morpheus_dfp_arch-$(arch).txt") as requirements_file:
subprocess.call(f"pip install -r {requirements_file}".split())
EOF

pytest tests/morpheus_dfp
4 changes: 2 additions & 2 deletions ci/conda/recipes/morpheus-libs/morpheus_llm_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fi
python3 <<EOF
import importlib.resources
import subprocess
requirements_file = importlib.resources.path("morpheus_llm", "requirements_morpheus_llm_arch-$(arch).txt")
subprocess.call(f"pip install -r {requirements_file}".split())
with importlib.resources.path("morpheus_llm", "requirements_morpheus_llm_arch-$(arch).txt") as requirements_file:
subprocess.call(f"pip install -r {requirements_file}".split())
EOF

pytest tests/morpheus_llm

0 comments on commit c884848

Please sign in to comment.