Commit 7165925d authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Giorgos Korfiatis

admin: Update to build styles in debian build context

append /usr/local/bin path to PATH environment variable to be able to
resolve the executable of locally installed compass library.
parent 36d020e8
......@@ -145,17 +145,20 @@ def compile_sass():
from distutils.spawn import find_executable
css_dir = os.path.join(".", "synnefo_admin", "admin", "static")
css_dir = os.path.abspath(css_dir)
if not find_executable("gem"):
raise Exception("gem not found, please install ruby and gem")
os.environ["PATH"] += ":/usr/local/bin"
if not find_executable("compass"):
print "Install compass"
ret =["gem", "install", "compass"])
if ret == 1:
raise Exception("gem install failed")
compass_cmd = ["compass", "compile", css_dir, "-e"]
compass_bin = find_executable("compass")
compass_cmd = [compass_bin, "compile", css_dir, "-e"]
ret = + ["production"])
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment