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}"