Skip to content

Commit

Permalink
Update docs around install with sysdeps vs manual listing of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mitechie committed Mar 17, 2013
1 parent cc7c5aa commit 19e6b6c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ BOOKIE_CSS = bookie/static/css
RESCSS = bookie/static/css/responsive.css
BASECSS = bookie/static/css/base.css

SYSDEPS := build-essential libxslt1-dev libxml2-dev python-dev libpq-dev git\
python-virtualenv rrdtool unzip

.PHONY: all
all: deps develop bookie.db db_up $(CHROME_BUILD) chrome_css js

Expand All @@ -46,8 +49,14 @@ clean: clean_js clean_css
.PHONY: clean_all
clean_all: clean_venv clean_js clean_css clean_chrome clean_downloadcache

.PHONY: sysdeps
sysdeps:
sudo apt-get install $(SYSDEPS)

.PHONY: install
install: $(BOOKIE_INI) all first_bookmark

.PHONY: develop
develop: lib/python*/site-packages/bookie.egg-link
lib/python*/site-packages/bookie.egg-link:
$(PY) setup.py develop
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ If you're on Ubuntu, you should be able to get started with:

::

$ sudo apt-get install build-essential libxslt1-dev libxml2-dev python-dev git python-virtualenv rrdtool
$ git clone git@github.com:mitechie/Bookie.git && cd Bookie && make install && make run
$ git clone git@github.com:mitechie/Bookie.git
$ cd Bookie && make sysdeps && make install && make run
$ google-chrome (or other browser) http://127.0.0.1:6543
15 changes: 7 additions & 8 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ and your distro for the following:

::

$ sudo apt-get install build-essential libxslt1-dev libxml2-dev python-dev libpq-dev git python-virtualenv rrdtool unzip
$ git clone git://github.com/mitechie/Bookie.git && cd Bookie && make install
$ git clone git://github.com/mitechie/Bookie.git
$ cd Bookie && make sysdeps && make install
# THIS WILL TAKE A WHILE, GET A COFFEE
$ make run
$ (YOUR BROWSER) http://127.0.0.1:6543/
Expand Down Expand Up @@ -47,15 +47,14 @@ OS Packages
There are some required packages that need to be installed so you can build bookie. These are:

- build-essential
- python-dev
- libxslt1-dev
- libxml2-dev
- python-dev
- libpq-dev
- git

::

# install the required packages to build bookie
$ sudo apt-get install build-essential libxslt1-dev libxml2-dev python-dev git
- python-virtualenv
- rrdtool
- unzip


Note: right we we support three databases - mysql, postgres, and sqlite - and the database bindings need to be built into the virtualenv. Out of the box, Bookie will setup a Sqlite version for you to get started with.
Expand Down

0 comments on commit 19e6b6c

Please sign in to comment.