Added predepend packages and updated python path for build folders.

This commit is contained in:
Tom Galloway 2013-01-03 15:08:06 +00:00
parent fed5bd13f1
commit b2c157ec1d
4 changed files with 25 additions and 5 deletions

3
.gitignore vendored
View File

@ -23,4 +23,5 @@ TODO
cfg.py
cherrypy.config
data/users.sqlite3
predepend
build/

View File

@ -1,5 +1,6 @@
#SHELL := /bin/bash
MAKE=make
BUILD_DIR = build
#TODO: add install target
@ -9,9 +10,22 @@ COMPRESSED_CSS := $(patsubst %.css,%.tiny.css,$(CSS))
PWD=`pwd`
## Catch-all tagets
default: cfg cherrypy.config dirs template css docs dbs
default: predepend cfg cherrypy.config dirs template css docs dbs $(BUILD_DIR)/exmachina $(BUILD_DIR)/bjsonrpc
all: default
build:
mkdir -p $(BUILD_DIR)
predepend:
sudo sh -c "apt-get install augeas-tools python-bjsonrpc python-augeas python-simplejson"
touch predepend
$(BUILD_DIR)/exmachina: build
git clone git://github.com/bnewbold/exmachina $(BUILD_DIR)/exmachina
$(BUILD_DIR)/bjsonrpc: build
git clone git://github.com/deavid/bjsonrpc.git $(BUILD_DIR)/bjsonrpc
dbs: data/users.sqlite3
data/users.sqlite3: data/users.sqlite3.distrib
@ -69,3 +83,5 @@ clean:
@find . -name "*.bak" -exec rm {} \;
@$(MAKE) -s -C doc clean
@$(MAKE) -s -C templates clean
rm -rf build
rm -f predepend

View File

@ -17,7 +17,7 @@ from util import *
from logger import Logger
#from modules.auth import AuthController, require, member_of, name_is
from exmachina.exmachina import ExMachinaClient
from exmachina import ExMachinaClient
import socket
__version__ = "0.2.14"

View File

@ -1,8 +1,11 @@
#! /bin/sh
PYTHONPATH=../exmachina:$PYTHONPATH
PYTHONPATH=build/exmachina:$PYTHONPATH
PYTHONPATH=build/bjsonrpc:$PYTHONPATH
export PYTHONPATH
sudo killall exmachina.py
sudo ../exmachina/exmachina.py -v &
sudo build/exmachina/exmachina.py -v &
python plinth.py
sudo killall exmachina.py