From 6a5dbdfd630d6b3579300b6c40a14eed2727c905 Mon Sep 17 00:00:00 2001 From: Jason Burgett Date: Wed, 1 Nov 2017 19:23:53 +0000 Subject: [PATCH] Updated initial_setup script to install new libraries and the nokogiri gem ahead of the bundle install to speed up overall initial installation time --- initial_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initial_setup.py b/initial_setup.py index a626fb36..41d46a8f 100644 --- a/initial_setup.py +++ b/initial_setup.py @@ -10,8 +10,9 @@ def install_prereqs(): print("Updating Apt...") os.system('apt update') print("Installing prerequisites via Apt...") - os.system('apt install python3 bundler libsqlite3-dev isc-dhcp-server hostapd -y') + os.system('apt install python3 bundler libsqlite3-dev isc-dhcp-server hostapd libxml2-dev libxslt-dev -y') print("Installing necessary Ruby Gems. This can take a few minutes...") + os.system('gem install nokogiri --no-document -v 1.6.6.2 -- --use-system-libraries') os.system('bundle install --gemfile=' + project_path + '/Configuration\ App/Gemfile') def update_config_paths():