From 3dd65a9f57d6932f1a6aca5bd63dffee36edfbc9 Mon Sep 17 00:00:00 2001 From: Theja Date: Mon, 28 Apr 2025 00:12:55 -0500 Subject: [PATCH] airflow install --- airflow_setup/airflow_install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 airflow_setup/airflow_install.sh diff --git a/airflow_setup/airflow_install.sh b/airflow_setup/airflow_install.sh new file mode 100755 index 0000000..d60187a --- /dev/null +++ b/airflow_setup/airflow_install.sh @@ -0,0 +1,10 @@ +AIRFLOW_VERSION=2.10.5 + +# Extract the version of Python you have installed. If you're currently using a Python version that is not supported by Airflow, you may want to set this manually. +# See above for supported versions. +PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" + +CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt" +# For example this would install 2.10.5 with python 3.8: https://raw.githubusercontent.com/apache/airflow/constraints-2.10.5/constraints-3.8.txt + +pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"