========================================================
BRABU - BRAMS Ramsin Build Utility
Authors: Luiz Flávio Rodrigues, Denis Eiras

DMD - Modeling and Development Division
CPTEC - Center for Weather Forecast and Climate Studies
INPE - National Institute for Space Research

SUPPORT: brams_help@inpe.br
http://www.cptec.inpe.br
========================================================



Information about the project
=============================

There's 2 versions:

py2.7 - https://pypi.org/project/brabu-py2.7/
py3.5 - https://pypi.org/project/brabu-py3.5/



Installation Instructions
=========================

PRE-REQUISITES: Python 2.7 or 3.5
You must install one of them:

2.7) sudo apt-get install python2.7

3.5) sudo apt-get install python3.5

    If you can't find python3.5 version, you may run it before install:
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt-get update

===> Select mode 1 for Begginners or mode 2 for Advanced Users:


1) BEGGINNERS

Install instructions for Linux Brabu pre-compiled package (for Begginners - offline mode - don't requires an internet
connection for installing, just for downloading BRABU):

=> Create a folder, e.g.:
mkdir ~/brabu
=> download the file brabu-py.tgz
=> extract the file brabu.tgz
tar -xzvf brabu.tgz


2) ADVANCED USERS

Create a Python 3 virtual environment and installing Brabu for Linux though install_brabu.sh (for Advanced Users -
requires an internet conneciton):
=> download the file install_brabu.sh
=> Check install_brabu.sh and execute the commands line by line.



Running Brabu
=============


### 1) Select Py version
# export BRABU_PY_VERSION="2.7"
export BRABU_PY_VERSION="3.5"
export BRABU_VERSION_NAME='brabu-py'${BRABU_PY_VERSION}


### 2) Configure brabu directories for running before:
export BRABU=~/$BRABU_VERSION_NAME
export PYTHONPATH=$BRABU:$BRABU/lib/python${BRABU_PY_VERSION}/site-packages/brabu
export BRABU_DATA_DIR=$BRABU/data

### 3) Activate virtual environment
cd $BRABU && source $BRABU/bin/activate

### 4) Create brabu alias
alias brabu='$BRABU/bin/python${BRABU_PY_VERSION} lib/python${BRABU_PY_VERSION}/site-packages/brabu/brabu.py'

### 5) To run brabu, enter the $BRABU directory and execute:
brabu

