Skip to content

Commit

Permalink
fix flag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
arogozhnikov committed Sep 16, 2024
1 parent 8a0ba22 commit f7385c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion einops/tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
def run(cmd, **env):
# keeps printing output when testing
cmd = cmd.split(" ") if isinstance(cmd, str) else cmd
print("running:", cmd)
p = Popen(cmd, cwd=str(Path(__file__).parent), env={**os.environ, **env})
p.communicate()
return p.returncode
Expand All @@ -21,7 +22,7 @@ def run(cmd, **env):
def main():
_executable, *args = sys.argv
frameworks = [x for x in args if x != "--pip-install"]
pip_install_is_set = "--pip-install" in frameworks
pip_install_is_set = "--pip-install" in args
framework_name2installation = {
"numpy": ["numpy"],
"torch": ["torch --index-url https://download.pytorch.org/whl/cpu"],
Expand Down

0 comments on commit f7385c8

Please sign in to comment.