Skip to content

Commit

Permalink
Switch to subprocess.run and shell=True
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Sep 5, 2023
1 parent f850d29 commit 6eb501b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ntd2d/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ def main():
environment = pathlib.Path(environment)
if environment.is_file():
gha_utils.debug(f"conda installing", use_subprocess=True)
subprocess.check_call(["conda", "env", "update",
"--name", "base",
"--file", environment.as_posix()])
subprocess.run(["conda", "env", "update",
# quiet to shut off progress bars
"--quiet",
# verbose to actually list what's installed
"--verbose",
"--name", "base",
"--file", environment.as_posix()],
shell=True,
check=True)

# Actually NIST the Docs 2 Death
# This needs to be a subprocess so that it sees packages installed above
Expand Down

0 comments on commit 6eb501b

Please sign in to comment.