potiuk commented on pull request #19867:
URL: https://github.com/apache/airflow/pull/19867#issuecomment-981650929
Sounds simple enough:
```
#!/usr/bin/env python3
import subprocess
import sys
from os import execv
from pathlib import Path
AIRFLOW_SOURCES_DIR = Path(__file__).parent.resolve()
BUILD_DIR = AIRFLOW_SOURCES_DIR / ".build"
BREEZE_VENV_DIR = BUILD_DIR / "breeze2" / "venv"
BREEZE_VENV_BIN_DIR = BREEZE_VENV_DIR / "bin"
BREEZE_VENV_PIP = BREEZE_VENV_BIN_DIR / "pip"
BREEZE_VENV_BREEZE = BREEZE_VENV_BIN_DIR / "Breeze2"
BREEZE_SOURCE_PATH = AIRFLOW_SOURCES_DIR / "dev" / "breeze"
if not BREEZE_VENV_DIR.exists():
BREEZE_VENV_DIR.mkdir(parents=True, exist_ok=True)
subprocess.Popen([sys.executable, "-m", "venv",
f"{BREEZE_VENV_DIR}"]).wait()
subprocess.Popen([f"{BREEZE_VENV_PIP}", "install", "-e", "."],
cwd=BREEZE_SOURCE_PATH).wait()
execv(f"{BREEZE_VENV_BREEZE}", [f"{BREEZE_VENV_BREEZE}"] + sys.argv[1:])
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]