Skip to content

Commit d5bfc91

Browse files
authored
Merge pull request #12 from thejat/theja/spring2025
airflow install
2 parents 26def3f + 3dd65a9 commit d5bfc91

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

airflow_setup/airflow_install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
AIRFLOW_VERSION=2.10.5
2+
3+
# 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.
4+
# See above for supported versions.
5+
PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
6+
7+
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
8+
# 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
9+
10+
pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"

0 commit comments

Comments
 (0)