From 9c7547ada90e8d6e973180a17760f67b4f21fb51 Mon Sep 17 00:00:00 2001
From: Rajat Singhal <rajatsinghal564@gmail.com>
Date: Tue, 26 Nov 2019 12:12:10 +0530
Subject: [PATCH] Fix Travis Builds (#51)

* Add libhdf5 installation

* Roll back to Python 3.7 on Travis
---
 .travis.yml   | 16 ++++++++--------
 3-ML-Build.sh |  2 +-
 ML-Basic.sh   |  2 ++
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a67b63d..6b69325 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,25 +11,25 @@ matrix:
       - hash -r  # To reload env vars like PATH
       - conda info -a
       - CIINSTALL=yes ./2-GenSoftware.sh
-      python: 3.8
+      python: 3.7
     - name: xenial-opencv
       os: linux
       sudo: required
       dist: xenial
       script: CIINSTALL=yes ./opencvDirectInstall.sh
-      python: 3.8
+      python: 3.7
     - name: xenial-ml
       os: linux
       sudo: required
       dist: xenial
       script: CIINSTALL=yes ./3-ML-Build.sh
-      python: 3.8
+      python: 3.7
     - name: xenial-ml-basic
       os: linux
       sudo: required
       dist: xenial
       script: CIINSTALL=yes ./ML-Basic.sh
-      python: 3.8
+      python: 3.7
     - name: bionic-basic
       os: linux
       sudo: required
@@ -40,25 +40,25 @@ matrix:
       - hash -r  # To reload env vars like PATH
       - conda info -a
       - CIINSTALL=yes ./2-GenSoftware.sh
-      python: 3.8
+      python: 3.7
     - name: bionic-opencv
       os: linux
       sudo: required
       dist: bionic
       script: CIINSTALL=yes ./opencvDirectInstall.sh
-      python: 3.8
+      python: 3.7
     - name: bionic-ml
       os: linux
       sudo: required
       dist: bionic
       script: CIINSTALL=yes ./3-ML-Build.sh
-      python: 3.8
+      python: 3.7
     - name: bionic-ml-basic
       os: linux
       sudo: required
       dist: bionic
       script: CIINSTALL=yes ./ML-Basic.sh
-      python: 3.8
+      python: 3.7
 before_install:
     - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
     - sudo apt-get update -qq
diff --git a/3-ML-Build.sh b/3-ML-Build.sh
index e613ef0..81b6556 100755
--- a/3-ML-Build.sh
+++ b/3-ML-Build.sh
@@ -80,7 +80,7 @@ if which nvcc > /dev/null; then
 fi
 
 execute $PIP numpy
-execute sudo apt-get install -y build-essential cmake pkg-config openjdk-8-jdk
+execute sudo apt-get install -y build-essential cmake pkg-config openjdk-8-jdk libhdf5-dev
 
 # To install the latest Bazel version, which has been commented out as of tensorflow v1.13 because the latest version is not supported yet
 # Uncomment the following lines and comment out the Bazel installation further down below in order to install the latest Bazel release
diff --git a/ML-Basic.sh b/ML-Basic.sh
index 6dd6176..7093a4a 100755
--- a/ML-Basic.sh
+++ b/ML-Basic.sh
@@ -63,6 +63,8 @@ else
     PIP="sudo pip3 install"
 fi
 
+execute sudo apt-get install libhdf5-dev
+
 $PIP --upgrade numpy tabulate python-dateutil
 execute $PIP keras gensim networkx --upgrade
 execute $PIP tensorflow$GPU_PRESENT --upgrade