aboutsummaryrefslogtreecommitdiffstats
path: root/env-setup
blob: 9f16a2f7f7d574c5b2914cb46e97024b4098d123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Set up the local scraperwiki python library
if [ ! -d testlib/scraperwiki-python ] ; then
    mkdir -p testlib
    git clone https://github.com/petterreinholdtsen/scraperwiki-python.git \
	testlib/scraperwiki-python
    (cd testlib/scraperwiki-python; git checkout -b localbranch)
    (cd testlib/scraperwiki-python; git merge -m "Merge patches." origin/scraperwiki.swimport \
	origin/sqliteerror origin/verbose-sqlite)
fi

# Install the rest
sudo apt-get install python-alembic python-beautifulsoup python-dateutil python-requests python-lxml python-cssselect
if [ ! -h scrapersources/postliste-python-lib.py ] ; then
    ln -s postliste-python-lib scrapersources/postliste-python-lib.py
fi
mkdir -p data