Skip to content

Commit

Permalink
Fix validation issue on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Oct 27, 2024
1 parent 599206e commit 06c3d65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/setup_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ def install_requirements_inbulk(
optional_parm += " -U" if upgrade else ""
optional_parm += " --quiet" if not show_stdout else ""

cmd = [sys.executable, "-m", "pip", "install", "-r", requirements_file] + optional_parm.split()
cmd = f"pip install -r {requirements_file} {optional_parm}"

if sys.platform.startswith("win32"):
cmd += ["|", "findstr", "/V", "Requirement already satisfied"]
cmd += " | findstr /V \"Requirement already satisfied\""
else:
cmd += ["|", "grep", "-v", "Requirement already satisfied"]
cmd += " | grep -v \"Requirement already satisfied\""

run_cmd(cmd)

Expand Down

0 comments on commit 06c3d65

Please sign in to comment.