-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
21 lines (16 loc) · 710 Bytes
/
Copy pathsetup.sh
File metadata and controls
21 lines (16 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#/bin/bash
# this script will setup the environment and install all necessary components
# install/upgrade virtualenv
python3.7 -m pip install --upgrade virtualenv
# create and run a python3.7 virtual env
python3.7 -m venv venv
source venv/bin/activate
# install/upgrade pip
python3.7 -m pip install --upgrade pip setuptools wheel
# install Airflow in the virtual env
AIRFLOW_VERSION=2.3.2
PYTHON_VERSION=3.7
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
pip install "apache-airflow[async,postgres,google]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
# pip install pypi packages
pip install -r requirements.txt