🖱️Installing BAD Workflows
Dependencies:
Python 3.10
pip
Python virtualenv (recommended)
See below for more a detailed walk-through of the installation process.
Installing System Dependencies
Update packages list and install software-properties-common:
sudo apt update
sudo apt install software-properties-commonAdd deadsnakes PPA which contains Python 3.10 for Ubuntu 20.04; press Enter when prompted:
sudo add-apt-repository ppa:deadsnakes/ppaInstall Python 3.10:
sudo apt install python3.10 python3.10-devInstall pip:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.10 get-pip.pyInstall virtualenv:
pip install --upgrade virtualenvInstall Docker Engine:
Following the Install Docker Engine on Ubuntu tutorial.
Make sure that Docker can be run without sudo, e.g.
sudo usermod -aG docker your-username
Install Homebrew with the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"Install Python 3.10 with brew:
brew install python@3.10Add Python 3.10 to path:
echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.bash_profileInstall virtualenv 20 or greater:
pip3.10 install --upgrade virtualenvInstall Docker Desktop:
Follow the Install Docker Desktop on Mac tutorial.
Creating a Python Virtual Environment
It is highly recommended to create a Python virtual environment before installing the Observatory Platform and BAD workflows. To create a new virtual environment, execute the following command:
python3.10 -m venv MY_VENV_NAME # Change MY_VENV_NAME to whatever you pleaseTo activate/deactivate the environment:
source MY_VENV_NAME/bin/activate # Activate
deactivate # DeactivateWhile active, all changes to Python packages will be contained to the environment. Similarly, any Python run commands will be done in the context of the active environment. It is recommended that the following packages are installed to an active virtual environment, although there is no reason that the BAD Workflows could not be run without one.
The Observatory Platform
Make sure that you have followed the above instructions before installing the observatory-platform.
Clone the Observatory Platform repository:
git clone https://github.com/The-Academic-Observatory/observatory-platformInstall the observatory-platform package:
pip install observatory-platform --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.7.3/constraints-no-providers-3.10.txtBAD Workflows
Clone the BAD workflows repository (oaebu-workflows)
git clone https://github.com/The-Academic-Observatory/oaebu-workflows.gitInstall the workflows to the active python environment
pip install oaebu-workflowsLast updated