Fixing python call in check-pr.
-#!/usr/bin/env python3
+#!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
@@ -192,9 +192,9 @@ class Deployer:
def deploy(self, filename: str) -> None:
print(f"deploying {filename} to {self.instance}")
venv = "deploy-venv"
- subprocess.check_call(f"python3 -mvenv {venv}", shell=True)
+ subprocess.check_call(f"python -mvenv {venv}", shell=True)
pip = venv_path(venv, "pip")
- py = venv_path(venv, "python3")
+ py = venv_path(venv, "python")
config = os.path.join(os.getcwd(), "config.json")
commands = [
("extracting release-artifacts", f"unzip -qq {filename}"),
@@ -223,7 +223,7 @@ class Deployer:
venv = "deploy-venv"
pip = venv_path(venv, "pip")
- py = venv_path(venv, "python3")
+ py = venv_path(venv, "python")
az_cmd = ["az", "account", "show", "--query", "id", "-o", "tsv"]
subscription_id = subprocess.check_output(az_cmd, encoding="UTF-8")
@@ -261,8 +261,8 @@ class Deployer:
def test(self, filename: str) -> None:
venv = "test-venv"
- subprocess.check_call(f"python3 -mvenv {venv}", shell=True)
- py = venv_path(venv, "python3")
+ subprocess.check_call(f"python -mvenv {venv}", shell=True)
+ py = venv_path(venv, "python")
test_dir = "integration-test-artifacts"
script = "integration-test.py"
endpoint = f"https://{self.instance}.azurewebsites.net"
@@ -278,7 +278,7 @@ class Deployer:
"extracting integration-test-artifacts",
f"unzip -qq {filename} -d {test_dir}",
),
- ("test venv", f"python3 -mvenv {venv}"),
+ ("test venv", f"python -mvenv {venv}"),
("installing wheel", f"./{venv}/bin/pip install -q wheel"),
("installing sdk", f"./{venv}/bin/pip install -q sdk/*.whl"),
(
