Commit 27e9f307c8f08a257d32e96faca12b0e07a8e198

Authored by Elena.Budnik
1 parent dab6ad76

Automatically set amdapy branch in relation with the hostname

Showing 1 changed file with 9 additions and 2 deletions   Show diff stats
scripts/build_amdapy_doc.sh
... ... @@ -10,9 +10,16 @@ BUILD_DIR="$AMDA_IHM/scripts/amdapy_doc_build"
10 10 PYTHON_VENV="$BUILD_DIR/amdapy_venv"
11 11 AMDAPY_PATH="$BUILD_DIR/amdapy"
12 12  
13   -GIT_BRANCH="master"
14 13 DST_DIR="$AMDA_IHM/help"
15 14  
  15 +HOSTNAME=`hostname`
  16 +if [ "$HOSTNAME" = "cdpp3" ]
  17 +then
  18 + GIT_BRANCH="master"
  19 +else
  20 + GIT_BRANCH="dev"
  21 +fi
  22 +
16 23 mkdir -p "$BUILD_DIR"
17 24  
18 25 if [ -d "$PYTHON_VENV" ]
... ... @@ -21,7 +28,7 @@ then
21 28 source "$PYTHON_VENV/bin/activate"
22 29 else
23 30 # Build & activate virtual env.
24   - python3 -m venv "$PYTHON_VENV"
  31 + python3.6 -m venv "$PYTHON_VENV"
25 32 source "$PYTHON_VENV/bin/activate"
26 33 pip install --upgrade pip
27 34 pip install pandas numpy lxml matplotlib build sphinx
... ...